Skip to main contentSkip to solution

A _________ is the overall window where the outputs of pyplot functions are plotted.

Solution

✅ Correct Option: 4

In Matplotlib's pyplot, a figure is the overall window or canvas that holds everything that is plotted. It can contain one or more axes (the individual plots), along with titles, legends and labels. A figure is created with plt.figure(), or automatically when you call a plotting function such as plt.plot().


Axes vs figure: students often confuse the two. Axes is a single plot area inside the figure, not the whole window.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question