CBSE Class 12 Informatics Practices Question 49 of 147

Plotting with Pyplot — Question 14

Back to all questions
14
Question

Question 14

Which of the following function will create a horizontal bar chart ?

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

barh()

Reason — The barh() function will create a horizontal bar chart.