MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / draw

Function draw

lib/matplotlib/pyplot.py:1321–1338  ·  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 (via `.ion()`), this should be only rarely needed, but there may be ways to modify the state of a figure without marking it as "stale".

()

Source from the content-addressed store, hash-verified

1319
1320
1321def draw() -> None:
1322 """
1323 Redraw the current figure.
1324
1325 This is used to update a figure that has been altered, but not
1326 automatically re-drawn. If interactive mode is on (via `.ion()`), this
1327 should be only rarely needed, but there may be ways to modify the state of
1328 a figure without marking it as "stale". Please report these cases as bugs.
1329
1330 This is equivalent to calling ``fig.canvas.draw_idle()``, where ``fig`` is
1331 the current figure.
1332
1333 See Also
1334 --------
1335 .FigureCanvasBase.draw_idle
1336 .FigureCanvasBase.draw
1337 """
1338 gcf().canvas.draw_idle()
1339
1340
1341@_copy_docstring_and_deprecators(Figure.savefig)

Callers 1

draw_wrapperFunction · 0.85

Calls 2

gcfFunction · 0.85
draw_idleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…