{"action":"closed","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4732","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4732/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4732/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4732/events","html_url":"https://github.com/matplotlib/matplotlib/issues/4732","id":95627764,"number":4732,"title":"Interactivity is fragile","user":{"login":"mdehoon","id":136062,"avatar_url":"https://avatars.githubusercontent.com/u/136062?v=3","gravatar_id":"","url":"https://api.github.com/users/mdehoon","html_url":"https://github.com/mdehoon","followers_url":"https://api.github.com/users/mdehoon/followers","following_url":"https://api.github.com/users/mdehoon/following{/other_user}","gists_url":"https://api.github.com/users/mdehoon/gists{/gist_id}","starred_url":"https://api.github.com/users/mdehoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdehoon/subscriptions","organizations_url":"https://api.github.com/users/mdehoon/orgs","repos_url":"https://api.github.com/users/mdehoon/repos","events_url":"https://api.github.com/users/mdehoon/events{/privacy}","received_events_url":"https://api.github.com/users/mdehoon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/18","html_url":"https://github.com/matplotlib/matplotlib/milestones/next%20point%20release","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/18/labels","id":970105,"number":18,"title":"next point release","description":"Next minor release.","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":293,"state":"open","created_at":"2015-02-07T21:22:30Z","updated_at":"2015-08-14T20:46:48Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":16,"created_at":"2015-07-17T10:09:01Z","updated_at":"2015-08-14T20:46:48Z","closed_at":"2015-08-14T20:46:48Z","body":"With the current master, I am finding that interactivity can break in case of errors.\r\nThis is one example:\r\n```python\r\n>>> import matplotlib\r\n>>> matplotlib.use(\"tkagg\")\r\n>>> from pylab import *\r\n>>> figure()\r\n<matplotlib.figure.Figure object at 0x103b03150>\r\n>>> line, = plot([1,2,3])\r\n>>> line\r\n<matplotlib.lines.Line2D object at 0x108f81350>\r\n>>> line.set_dashes\r\n<bound method Line2D.set_dashes of <matplotlib.lines.Line2D object at 0x108f81350>>\r\n>>> line.set_dashes('--') # incorrect usage of set_dashes\r\n>>> Exception in Tkinter callback\r\nTraceback (most recent call last):\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py\", line 1536, in __call__\r\n    return self.func(*args)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py\", line 587, in callit\r\n    func(*args)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_tkagg.py\", line 370, in idle_draw\r\n    self.draw()\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_tkagg.py\", line 354, in draw\r\n    FigureCanvasAgg.draw(self)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_agg.py\", line 471, in draw\r\n    self.figure.draw(self.renderer)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/artist.py\", line 60, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/figure.py\", line 1119, in draw\r\n    func(*args)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/artist.py\", line 60, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/axes/_base.py\", line 2169, in draw\r\n    a.draw(renderer)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/artist.py\", line 60, in draw_wrapper\r\n    draw(artist, renderer, *args, **kwargs)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/lines.py\", line 741, in draw\r\n    drawFunc(renderer, gc, tpath, affine.frozen())\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/lines.py\", line 1154, in _draw_lines\r\n    self._lineFunc(renderer, gc, path, trans)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/lines.py\", line 1201, in _draw_dashed\r\n    renderer.draw_path(gc, path, trans)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.dev1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_agg.py\", line 166, in draw_path\r\n    self._renderer.draw_path(gc, path, transform, rgbFace)\r\nTypeError: a float is required\r\n\r\n>>> plot([1,2,4])\r\n# nothing happens\r\n\r\n>>> cla()\r\n# nothing happens\r\n```\r\nResizing the figure restores interactivity.\r\n\r\n"}}