CBSE Class 12 Informatics Practices Question 47 of 147

Plotting with Pyplot — Question 12

Back to all questions
12
Question

Question 12

Which of the following function will produce a bar chart ?

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

bar(), barh()

Reason — With Pyplot, a bar chart is created using bar() and barh() functions.