8000 FIX : first pass at fixing nbagg close issue by tacaswell · Pull Request #4456 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

FIX : first pass at fixing nbagg close issue #4456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 17, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
FIX: move logic where it should be
  • Loading branch information
tacaswell committed Aug 17, 2015
commit b16fcf9d9f2b74afa560e03b98e4bed3d7abbd9a
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_nbagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def on_close(self):
# the FigureManager.
self.comm.close()
self.manager.clearup_closed()
self.manager.canvas.close_event()

def send_json(self, content):
self.comm.send({'data': json.dumps(content)})
Expand All @@ -307,7 +308,6 @@ def on_message(self, message):
message = json.loads(message['content']['data'])
if message['type'] == 'closing':
self.on_close()
self.manager.canvas.close_event()
elif message['type'] == 'supports_binary':
self.supports_binary = message['value']
else:
Expand Down
0