Skip to main content
Commonmark migration
Source Link

From the matplotlib docs:

matplotlib.pyplot.draw()

 

Redraw the current figure.

 

This is used in interactive mode to update a figure that has been altered, but not automatically re-drawn.

 

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

 

fig.canvas.draw_idle()

From the matplotlib docs:

matplotlib.pyplot.draw()

 

Redraw the current figure.

 

This is used in interactive mode to update a figure that has been altered, but not automatically re-drawn.

 

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

 

fig.canvas.draw_idle()

From the matplotlib docs:

matplotlib.pyplot.draw()

Redraw the current figure.

This is used in interactive mode to update a figure that has been altered, but not automatically re-drawn.

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

fig.canvas.draw_idle()

Source Link
tmdavison
  • 69.7k
  • 13
  • 204
  • 182

From the matplotlib docs:

matplotlib.pyplot.draw()

Redraw the current figure.

This is used in interactive mode to update a figure that has been altered, but not automatically re-drawn.

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

fig.canvas.draw_idle()