matplotlib.pyplot.pause — Matplotlib 3.10.3 documentation (original) (raw)
matplotlib.pyplot.pause(interval)[source]#
Run the GUI event loop for interval seconds.
If there is an active figure, it will be updated and displayed before the pause, and the GUI event loop (if any) will run during the pause.
This can be used for crude animation. For more complex animation usematplotlib.animation.
If there is no active figure, sleep for interval seconds instead.