File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -139,5 +139,14 @@ def set_active(cls, manager):
139
139
cls ._activeQue .append (manager )
140
140
cls .figs [manager .num ] = manager
141
141
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 ()
142
151
143
152
atexit .register (Gcf .destroy_all )
Original file line number Diff line number Diff line change @@ -139,15 +139,7 @@ def displayhook(*args):
139
139
140
140
sys .displayhook = displayhook
141
141
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
151
143
152
144
153
145
@docstring .copy_dedent (Artist .findobj )
You can’t perform that action at this time.
0 commit comments