File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,5 +139,14 @@ def set_active(cls, manager):
139139 cls ._activeQue .append (manager )
140140 cls .figs [manager .num ] = manager
141141
142+ @classmethod
143+ def draw_all (cls ):
144+ """
145+ Redraw all figures registered with the pyplot
146+ state machine.
147+ """
148+ for f_mgr in cls .get_all_fig_managers ():
149+ # TODO add logic to check if figure is dirty
150+ f_mgr .canvas .draw ()
142151
143152atexit .register (Gcf .destroy_all )
Original file line number Diff line number Diff line change @@ -139,15 +139,7 @@ def displayhook(*args):
139139
140140 sys .displayhook = displayhook
141141
142-
143- def draw_all ():
144- """
145- Redraw all figures registered with the pyplot
146- state machine.
147- """
148- for f_mgr in _pylab_helpers .Gcf .get_all_fig_managers ():
149- # TODO add logic to check if figure is dirty
150- f_mgr .canvas .draw ()
142+ draw_all = _pylab_helpers .Gcf .draw_all
151143
152144
153145@docstring .copy_dedent (Artist .findobj )
You can’t perform that action at this time.
0 commit comments