1. Home
  2. Data Science
  3. Matplotlib
  4. Which Matplotlib function creates a bar chart?

Added 16 Sep 2025

Which Matplotlib function creates a bar chart?

  1. plt.bar() Correct answer
  2. plt.chart()
  3. plt.column()
  4. plt.graph()

Correct answer

A. plt.bar()

19 views

MCQSEXAM

Explanation

plt.bar() creates vertical bar charts to compare categorical data.

Reference

Asked in: Data Science Exams

https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.bar.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Matplotlib MCQs

Practise all Matplotlib MCQs

Similar MCQs