Skip to content

Matplotlib Quiz

Test your understanding of Matplotlib plotting and visualization techniques!


πŸ“ Note: This quiz contains 20 questions including multiple choice and multiple selection questions. Some questions may have more than one correct answer. Select all that apply for those questions.

1. Which function creates a new figure in Matplotlib?

2. What does plt.show() do?

3. Which functions add labels and titles to a plot? (Select all that apply)

4. What type of plot is created with plt.scatter()?

5. Which function is used to create a histogram?

6. What is the difference between plt.bar() and plt.barh()?

7. Which function creates a box plot?

8. What does the alpha parameter control in plotting functions?

9. Which function is used to display 2D arrays as images or heatmaps?

10. What does plt.colorbar() add to a plot?

11. How do you create multiple subplots in a single figure?

12. What does ax.twinx() do?

13. Which parameters are commonly used in plt.subplots()? (Select all that apply)

14. What does plt.tight_layout() do?

15. Which file formats can Matplotlib save figures to? (Select all that apply)

16. What parameter in plt.savefig() controls the resolution of the saved figure?

17. What does the extent parameter in plt.imshow() control?

18. What is GridSpec used for?

19. What does the bins parameter control in plt.hist()?

20. What is the purpose of plt.grid(True)?

Quiz Results

In Partnership With