File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1200,6 +1200,7 @@ def _on_resize(self, event):
1200
1200
# we're paused. Reset the cache and re-init. Set up an event handler
1201
1201
# to catch once the draw has actually taken place.
1202
1202
self ._fig .canvas .mpl_disconnect (self ._resize_id )
1203
+ self ._was_stopped = self .event_source ._timer is None
1203
1204
self .event_source .stop ()
1204
1205
self ._blit_cache .clear ()
1205
1206
self ._init_draw ()
@@ -1209,8 +1210,9 @@ def _on_resize(self, event):
1209
1210
def _end_redraw (self , event ):
1210
1211
# Now that the redraw has happened, do the post draw flushing and
1211
1212
# blit handling. Then re-enable all of the original events.
1212
- self ._post_draw (None , False )
1213
- self .event_source .start ()
1213
+ self ._post_draw (None , self ._blit )
1214
+ if not self ._was_stopped :
1215
+ self .event_source .start ()
1214
1216
self ._fig .canvas .mpl_disconnect (self ._resize_id )
1215
1217
self ._resize_id = self ._fig .canvas .mpl_connect ('resize_event' ,
1216
1218
self ._on_resize )
You can’t perform that action at this time.
0 commit comments