### Navigation

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

# matplotlib.pyplot.draw

`matplotlib.pyplot.``draw`()

  Redraw the current figure.

  This is used to update a figure that has been altered, but not automatically re-drawn. If interactive mode is on (`ion()`), this should be only rarely needed, but there may be ways to modify the state of a figure without marking it as `stale`. Please report these cases as bugs.

  A more object-oriented alternative, given any `Figure` instance, `fig`, that was created using a `pyplot` function, is:

      fig.canvas.draw_idle()

## Examples using `matplotlib.pyplot.draw`

Demo Axes Divider

Demo Axes Grid

Demo Axes Grid2

Demo Colorbar With Inset Locator

Demo Edge Colorbar

Inset Locator Demo

Inset Locator Demo2

Parasite Simple2

Scatter Hist

Simple Axesgrid2

Simple Axisline4

Demo Curvelinear Grid

Demo Parasite Axes2

Rotating a 3D plot

Anchored Artists

Arrow Demo

Loglog Aspect

Cursor Demo

Demo BboxImage

Demo Text Path

Fancyarrow Demo

Fancybox Demo

Fancytextbox Demo

Interactive functions

Multiline

Whats New 0.99 Axes Grid

Usetex Baseline Test

Buttons

Check Buttons

Lasso Selector Demo

Radio Buttons

Textbox