VOOZH about

URL: https://www.geeksforgeeks.org/python/matplotlib-pyplot-show-in-python/

⇱ Matplotlib.pyplot.show() in Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Matplotlib.pyplot.show() in Python

Last Updated : 12 Jul, 2025
Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. Sample Code - Output: 👁 Image

matplotlib.pyplot.show() Function

The show() function in pyplot module of matplotlib library is used to display all figures.
Syntax:
matplotlib.pyplot.show(*args, **kw)
Parameters: This method accepts only one parameter which is discussed below:
  • block : This parameter is used to override the blocking behavior described above.
Returns: This method does not return any value.
Below examples illustrate the matplotlib.pyplot.show() function in matplotlib.pyplot: Example #1: Output: 👁 Image
Example #2:
Output: 👁 Image
Comment
Article Tags: