Revision: 6022
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6022&view=rev
Author: jdh2358
Date: 2008-08-12 16:03:19 +0000 (Tue, 12 Aug 2008)
Log Message:
-----------
some legend fixes
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.py
trunk/matplotlib/lib/matplotlib/legend.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2008-08-11 15:34:30 UTC (rev
6021)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2008-08-12 16:03:19 UTC (rev
6022)
@@ -6364,7 +6364,7 @@
for p in patch:
p.update(kwargs)
p.set_label(label)
- label = '_nolegend'
+ label = '_nolegend_'
if len(n)==1:
Modified: trunk/matplotlib/lib/matplotlib/legend.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/legend.py 2008-08-11 15:34:30 UTC (rev
6021)
+++ trunk/matplotlib/lib/matplotlib/legend.py 2008-08-12 16:03:19 UTC (rev
6022)
@@ -520,7 +520,8 @@
if isinstance(handle, Line2D):
ydata = y*np.ones(handle.get_xdata().shape, float)
handle.set_ydata(ydata+h/2.)
- handle._legmarker.set_ydata(ydata+h/2.)
+ if hasattr(handle, '_legmarker'):
+ handle._legmarker.set_ydata(ydata+h/2.)
elif isinstance(handle, Rectangle):
handle.set_y(y+1/4*h)
handle.set_height(h/2)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins