From: John H. <jd...@gm...> - 2008-10-20 12:52:53
|
On Mon, Oct 20, 2008 at 6:57 AM, Jakub Urban <ur...@ip...> wrote: > C:\Python25\lib\site-packages\matplotlib\legend.pyc in > _update_positions(self, r > enderer) > 521 ydata = y*np.ones(handle.get_xdata().shape, float) > 522 handle.set_ydata(ydata+h/2.) > --> 523 handle._legmarker.set_ydata(ydata+h/2.) > 524 elif isinstance(handle, Rectangle): > 525 handle.set_y(y+1/4*h) > > AttributeError: 'Line2D' object has no attribute '_legmarker' I'm prettu sure this is fixed in svn. If you don't have access to a svn build, edit C:\Python25\lib\site-packages\matplotlib\legend.py and replace line 523 with if hasattr(handle, '_legmarker'): handle._legmarker.set_ydata(ydata+h/2.) Hope this helps, JDH |