matplotlib.pyplot.draw
-
matplotlib.pyplot.draw()
[source] -
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 asstale
. Please report these cases as bugs.A more object-oriented alternative, given any
Figure
instance,fig
, that was created using apyplot
function, is:fig.canvas.draw_idle()
Examples using matplotlib.pyplot.draw
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/2.2.3/api/_as_gen/matplotlib.pyplot.draw.html