______________ is used to display the figure, where 'plt' is an alias.
______________ 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.
Related questions:
2025: 27 May Shift 2
2026: 31 May Shift 1