File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1685,7 +1685,7 @@ def __init__(self, figure):
1685
1685
# - in interactive mode
1686
1686
# - not bunching `draw_idle` calls (ex not in IPython)
1687
1687
self ._is_idle_drawing = True
1688
-
1688
+ self . _is_saving = False
1689
1689
figure .set_canvas (self )
1690
1690
self .figure = figure
1691
1691
# a dictionary from event name to a dictionary that maps cid->func
@@ -1698,7 +1698,6 @@ def __init__(self, figure):
1698
1698
self .scroll_pick_id = self .mpl_connect ('scroll_event' , self .pick )
1699
1699
self .mouse_grabber = None # the axes currently grabbing mouse
1700
1700
self .toolbar = None # NavigationToolbar2 will set me
1701
- self ._is_saving = False
1702
1701
self ._is_idle_drawing = False
1703
1702
1704
1703
@contextmanager
Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ def _auto_draw_if_interactive(fig, val):
564
564
fig : Figure
565
565
A figure object which is assumed to be associated with a canvas
566
566
"""
567
- if val and matplotlib .is_interactive ():
567
+ if val and matplotlib .is_interactive () and not fig . canvas . is_saving () :
568
568
fig .canvas .draw_idle ()
569
569
570
570
You can’t perform that action at this time.
0 commit comments