MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / draw

Function draw

site-packages/matplotlib/pyplot.py:668–683  ·  view source on GitHub ↗

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 (:func:`.ion()`), this should be only rarely needed, but there may be ways to modify the state of a figure without marking it as `stale`. Ple

()

Source from the content-addressed store, hash-verified

666
667
668def draw():
669 """Redraw the current figure.
670
671 This is used to update a figure that has been altered, but not
672 automatically re-drawn. If interactive mode is on (:func:`.ion()`), this
673 should be only rarely needed, but there may be ways to modify the state of
674 a figure without marking it as `stale`. Please report these cases as
675 bugs.
676
677 A more object-oriented alternative, given any
678 :class:`~matplotlib.figure.Figure` instance, :attr:`fig`, that
679 was created using a :mod:`~matplotlib.pyplot` function, is::
680
681 fig.canvas.draw_idle()
682 """
683 get_current_fig_manager().canvas.draw_idle()
684
685
686@docstring.copy_dedent(Figure.savefig)

Callers 1

draw_wrapperFunction · 0.85

Calls 2

get_current_fig_managerFunction · 0.85
draw_idleMethod · 0.45

Tested by

no test coverage detected