All quizzes
Free quiz · 21 questions in the bank

Matplotlib quiz

Test your Matplotlib knowledge with a free interactive quiz — 21 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

How do you save a Matplotlib figure to a file?

In this round
  1. How do you save a Matplotlib figure to a file?
  2. How do you add a title, axis labels, and a legend to a plot?
  3. How do you create a Figure with multiple subplots?
  4. What does `plt.tight_layout()` (or `fig.tight_layout()`) do?
  5. What does `dpi` control when saving a figure?
  6. How do you create a scatter plot?
  7. How do you create a basic line plot?
  8. How do you display a histogram of a numeric variable?
  9. How do you install Matplotlib?
  10. How does a pandas DataFrame's built-in `.plot()` method relate to Matplotlib?
  11. What does `plt.style.use("ggplot")` do?
  12. What is `pyplot` (commonly imported as `plt`)?
Gaps to close?
Read the curated Matplotlib notes — core concepts, patterns, interview prep.
Matplotlib notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka