Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8112b43

Browse files
committed
MNT : use draw_idle not draw in Gcf.draw_all
`draw_idle` has a better chance of not stepping on it's own toes and re-drawing multiple times in quick secession. I think this will also play nicer with the OSX backend?
1 parent f824578 commit 8112b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/_pylab_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ def draw_all(cls, force=False):
148148
for f_mgr in cls.get_all_fig_managers():
149149
# TODO add logic to check if figure is stale
150150
if force or f_mgr.canvas.figure.stale:
151-
f_mgr.canvas.draw()
151+
f_mgr.canvas.draw_idle()
152152

153153
atexit.register(Gcf.destroy_all)

0 commit comments

Comments
 (0)