VOOZH about

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

⇱ matplotlib.pyplot.pause() in Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

matplotlib.pyplot.pause() 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.

matplotlib.pyplot.pause() Function:

The pause() function in pyplot module of matplotlib library is used to pause for interval seconds.
Syntax:
matplotlib.pyplot.pause(interval)
Parameters: This method does not accepts any parameters. Return value: This method does not returns any value.
Below examples illustrate the matplotlib.pyplot.pause() function in matplotlib.pyplot: Example #1: Output: 👁 Image
Example #2:
Output: 👁 Image
Comment
Article Tags: