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

Added 16 Sep 2025

Which Matplotlib function creates a pie chart?

  1. plt.pie() Correct answer
  2. plt.circle()
  3. plt.chart()
  4. plt.slice()

Correct answer

A. plt.pie()

17 views

MCQSEXAM

Explanation

plt.pie() creates pie charts to show proportional data as slices of a circle.

Reference

Asked in: Data Science Exams

https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.pie.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