CBSE Class 12 Informatics Practices Question 40 of 147

Plotting with Pyplot — Question 5

Back to all questions
5
Question

Question 5

Which of the following is not a valid plotting function of Pyplot ?

  1. plot()
  2. bar()
  3. line()
  4. pie()
Answer

line()

Reason — The line() function is not a valid plotting function of Pyplot. In Matplotlib's Pyplot module, the correct function for creating line plots is plot().