Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Milestone
Description
With the current master, I am finding that interactivity can break in case of errors.
This is one example:
>>>importmatplotlib>>>matplotlib.use("tkagg")>>>frompylabimport*>>>figure()<matplotlib.figure.Figureobjectat0x103b03150>>>>line,=plot([1,2,3])>>>line<matplotlib.lines.Line2Dobjectat0x108f81350>>>>line.set_dashes<boundmethodLine2D.set_dashesof<matplotlib.lines.Line2Dobjectat0x108f81350>>>>>line.set_dashes('--')# incorrect usage of set_dashes>>>ExceptioninTkintercallbackTraceback (mostrecentcalllast):File"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py",line1536,in__call__returnself.func(*args)File"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py",line587,incallitfunc(*args)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",line370,inidle_drawself.draw()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",line354,indrawFigureCanvasAgg.draw(self)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",line471,indrawself.figure.draw(self.renderer)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",line60,indraw_wrapperdraw(artist,renderer,*args,**kwargs)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",line1119,indrawfunc(*args)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",line60,indraw_wrapperdraw(artist,renderer,*args,**kwargs)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",line2169,indrawa.draw(renderer)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",line60,indraw_wrapperdraw(artist,renderer,*args,**kwargs)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",line741,indrawdrawFunc(renderer,gc,tpath,affine.frozen())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",line1154,in_draw_linesself._lineFunc(renderer,gc,path,trans)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",line1201,in_draw_dashedrenderer.draw_path(gc,path,trans)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",line166,indraw_pathself._renderer.draw_path(gc,path,transform,rgbFace)TypeError:afloatisrequired>>>plot([1,2,4])# nothing happens>>>cla()# nothing happens
Resizing the figure restores interactivity.