Revision: 6499
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6499&view=rev
Author:   leejjoon
Date:     2008-12-05 21:09:42 +0000 (Fri, 05 Dec 2008)

Log Message:
-----------
Fixed a handlelegth bug in the legend class

Modified Paths:
--------------
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/legend.py

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2008-12-05 19:30:28 UTC (rev 6498)
+++ trunk/matplotlib/CHANGELOG  2008-12-05 21:09:42 UTC (rev 6499)
@@ -1,3 +1,6 @@
+2008-12-05 Fixed a bug that the handlelength of the new legend class 
+          set too short when numpoints=1 -JJL
+
 2008-12-04 Added support for data with units (e.g. dates) to
            Axes.fill_between. -RM
 

Modified: trunk/matplotlib/lib/matplotlib/legend.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/legend.py   2008-12-05 19:30:28 UTC (rev 
6498)
+++ trunk/matplotlib/lib/matplotlib/legend.py   2008-12-05 21:09:42 UTC (rev 
6499)
@@ -418,7 +418,7 @@
                                     npoints)
                 xdata_marker = xdata
             elif npoints == 1:
-                xdata = np.linspace(0, self.handlelength, 2)
+                xdata = np.linspace(0, self.handlelength*self.fontsize, 2)
                 xdata_marker = [0.5*self.handlelength*self.fontsize]
 
             if isinstance(handle, Line2D):


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to