From: <md...@us...> - 2008-01-09 18:52:44
|
Revision: 4830 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4830&view=rev Author: mdboom Date: 2008-01-09 10:52:16 -0800 (Wed, 09 Jan 2008) Log Message: ----------- Fix legend handles. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/legend.py Modified: trunk/matplotlib/lib/matplotlib/legend.py =================================================================== --- trunk/matplotlib/lib/matplotlib/legend.py 2008-01-09 18:37:50 UTC (rev 4829) +++ trunk/matplotlib/lib/matplotlib/legend.py 2008-01-09 18:52:16 UTC (rev 4830) @@ -248,7 +248,7 @@ legline.update_from(handle) self._set_artist_props(legline) # after update legline.set_clip_box(None) - legline.set_clip_path(self.legendPatch) + legline.set_clip_path(None) legline.set_markersize(self.markerscale*legline.get_markersize()) ret.append(legline) @@ -260,14 +260,14 @@ p.update_from(handle) self._set_artist_props(p) p.set_clip_box(None) - p.set_clip_path(self.legendPatch) + p.set_clip_path(None) ret.append(p) elif isinstance(handle, LineCollection): ydata = (y-HEIGHT/2)*npy.ones(self._xdata.shape, float) legline = Line2D(self._xdata, ydata) self._set_artist_props(legline) legline.set_clip_box(None) - legline.set_clip_path(self.legendPatch) + legline.set_clip_path(None) lw = handle.get_linewidth()[0] dashes = handle.get_dashes() color = handle.get_colors()[0] @@ -285,7 +285,7 @@ p.set_edgecolor(handle._edgecolors[0]) self._set_artist_props(p) p.set_clip_box(None) - p.set_clip_path(self.legendPatch) + p.set_clip_path(None) ret.append(p) else: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |