We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9ac8d0 commit 6a6f8d9Copy full SHA for 6a6f8d9
lib/matplotlib/_pylab_helpers.py
@@ -140,14 +140,14 @@ def set_active(cls, manager):
140
cls.figs[manager.num] = manager
141
142
@classmethod
143
- def draw_all(cls):
+ def draw_all(cls, force=False):
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
- if f_mgr.canvas.figure.dirty:
+ if force or f_mgr.canvas.figure.dirty:
151
f_mgr.canvas.draw()
152
153
atexit.register(Gcf.destroy_all)
0 commit comments