### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- matplotlib.pyplot »

# matplotlib.pyplot.pause

`matplotlib.pyplot.``pause`(interval)

  Pause for interval seconds.

  If there is an active figure it will be updated and displayed, and the GUI event loop will run during the pause.

  If there is no active figure, or if a non-interactive backend is in use, this executes time.sleep(interval).

  This can be used for crude animation. For more complex animation, see `matplotlib.animation`.

  This function is experimental; its behavior may be changed or extended in a future release.

## Examples using `matplotlib.pyplot.pause`

Animation Demo

Rotating a 3D plot

Rotating 3D wireframe plot