matplotlib.pyplot.draw#

matplotlib.pyplot.draw()[source]#

Redraw the current figure.

This is used to update a figure that has been altered, but notautomatically re-drawn. If interactive mode is on (viaion()), thisshould be only rarely needed, but there may be ways to modify the state ofa figure without marking it as "stale". Please report these cases as bugs.

This is equivalent to callingfig.canvas.draw_idle(), wherefig isthe current figure.

Examples usingmatplotlib.pyplot.draw#

Interactive functions

Interactive functions

Rotating a 3D plot

Rotating a 3D plot

Buttons

Buttons

Textbox

Textbox