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

Make sure self._idle is set to True in all cases #2677

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 4 commits into from
Dec 18, 2013
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
added try block in backend_tkagg.py
Added try block around `draw` in `idle_draw`.  If `draw`
raises an exception the figure is never marked idle again and
pyplot functions will not work as expect.
  • Loading branch information
tacaswell committed Dec 14, 2013
commit a6fbc7fa90b09d0abac83b97ae36553727620f61
6 changes: 4 additions & 2 deletions 6 lib/matplotlib/backends/backend_tkagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,10 @@ def draw_idle(self):
d = self._idle
self._idle = False
def idle_draw(*args):
self.draw()
self._idle = True
try:
self.draw()
finally:
self._idle = True

if d:
self._idle_callback = self._tkcanvas.after_idle(idle_draw)
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.