1. Home
  2. Data Science
  3. Matplotlib
  4. Which Matplotlib function saves a figure?

Added 16 Sep 2025

Which Matplotlib function saves a figure?

  1. plt.save()
  2. plt.savefig() Correct answer
  3. plt.export()
  4. plt.write()

Correct answer

B. plt.savefig()

20 views

MCQSEXAM

Explanation

plt.savefig() saves the current figure to a file in various formats (PNG, PDF, SVG, etc.).

Reference

Asked in: Data Science Exams

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

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? 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