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: