Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 057e6d9

Browse filesBrowse files
committed
FIX: move logic where it should be
1 parent c0cb5b6 commit 057e6d9
Copy full SHA for 057e6d9

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/backend_nbagg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_nbagg.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def on_close(self):
274274
# the FigureManager.
275275
self.comm.close()
276276
self.manager.clearup_closed()
277+
self.manager.canvas.close_event()
277278

278279
def send_json(self, content):
279280
self.comm.send({'data': json.dumps(content)})
@@ -296,7 +297,6 @@ def on_message(self, message):
296297
message = json.loads(message['content']['data'])
297298
if message['type'] == 'closing':
298299
self.on_close()
299-
self.manager.canvas.close_event()
300300
elif message['type'] == 'supports_binary':
301301
self.supports_binary = message['value']
302302
else:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.