Skip to main contentSkip to solution

______________ is used to display the figure, where 'plt' is an alias.

Solution

✅ Correct Option: 2

In Matplotlib, import matplotlib.pyplot as plt makes plt.show() the function that opens a window and displays the figure or figures created so far.


Option 3: plt.plot() only draws the line on the axes. The figure is not displayed in a script until plt.show() is called.

Option 1: there is no plt.fig(). The function that creates a new figure is plt.figure().

Option 4: plt.pixel() is not a Matplotlib function.

Keyboard Shortcuts

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