CBSE Class 12 Informatics Practices Question 41 of 147

Plotting with Pyplot — Question 6

Back to all questions
6
Question

Question 6

Which of the following plotting functions does not plot multiple data series ?

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

pie()

Reason — The pie() function in Matplotlib's Pyplot module can plot only one data sequence. On the other hand, functions like plot(), bar(), and barh() can plot multiple data series in a single chart.