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

Skip to content

Commit a6e3f1a

Browse files
committed
FIX: Flush events after closing figures in macosx backend
1 parent 8f4e7dd commit a6e3f1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backends/backend_macosx.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def __init__(self, canvas, num):
152152

153153
def close(self):
154154
Gcf.destroy(self)
155+
self.canvas.flush_events()
155156

156157

157158
@_Backend.export

0 commit comments

Comments
 (0)