Skip to content

Commit d735556

Browse files
committed
FIX: switch to manager level figure destruction
1 parent 56bc297 commit d735556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpl_gui/_promotion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _destroy(event):
7474

7575
if event.key in mpl.rcParams["keymap.quit"]:
7676
# TODO add notion of 'close' to managers
77-
event.canvas.manager.window.close()
77+
event.canvas.manager.destroy()
7878

7979
manager._destroy_cid = fig.canvas.mpl_connect("key_press_event", _destroy)
8080

0 commit comments

Comments
 (0)