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".
()
| 1319 | |
| 1320 | |
| 1321 | def 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) |
no test coverage detected
searching dependent graphs…