Bird
0
0

Which file format among these is NOT supported by plt.savefig() by default in matplotlib?

easy📝 Conceptual Q1 of 15
Matplotlib - Export and Publication Quality
Which file format among these is NOT supported by plt.savefig() by default in matplotlib?
ADOCX
BPNG
CPDF
DSVG
Step-by-Step Solution
Solution:
  1. Step 1: Understand supported formats by plt.savefig()

    Matplotlib supports common image formats like PNG, SVG, and PDF natively.
  2. Step 2: Identify unsupported format

    DOCX is a document format and is not supported by plt.savefig() for saving plots.
  3. Final Answer:

    DOCX is not supported by plt.savefig() -> Option A
  4. Quick Check:

    Unsupported format = DOCX [OK]
Quick Trick: Matplotlib saves images, not document files like DOCX [OK]
Common Mistakes:
  • Confusing document formats with image formats
  • Assuming all file types are supported
  • Thinking SVG is not supported

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Matplotlib Quizzes