From: <lee...@us...> - 2008-12-05 21:09:45
|
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. |