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
()
| 666 | |
| 667 | |
| 668 | def 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) |
no test coverage detected