8000 Merge pull request #22644 from greglucas/macosx-close-figure · matplotlib/matplotlib@5295e9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5295e9a

Browse files
authored
Merge pull request #22644 from greglucas/macosx-close-figure
FIX: Flush events after closing figures in macosx backend
2 parents cfacdb3 + a6e3f1a commit 5295e9a

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)
0