1. Home
  2. Data Science
  3. Matplotlib
  4. Which module of Matplotlib is used for creating plots?

Added 24 Feb 2024

Which module of Matplotlib is used for creating plots?

  1. mpl.plot
  2. plt
  3. matplotlib.plot
  4. pyplot Correct answer

Correct answer

D. pyplot

16 views

MCQSEXAM

Explanation

Plots are created with the pyplot module of Matplotlib (matplotlib.pyplot). 'plt' is just the alias commonly used when importing it: import matplotlib.pyplot as plt.

Doubts & discussion

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