From: <lee...@us...> - 2009-09-17 21:42:10
|
Revision: 7778 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7778&view=rev Author: leejjoon Date: 2009-09-17 21:42:03 +0000 (Thu, 17 Sep 2009) Log Message: ----------- fix the legend bug that dash-style for LineCollections handle is set incorrectly Modified Paths: -------------- branches/v0_99_maint/lib/matplotlib/legend.py Modified: branches/v0_99_maint/lib/matplotlib/legend.py =================================================================== --- branches/v0_99_maint/lib/matplotlib/legend.py 2009-09-17 20:00:23 UTC (rev 7777) +++ branches/v0_99_maint/lib/matplotlib/legend.py 2009-09-17 21:42:03 UTC (rev 7778) @@ -513,7 +513,8 @@ color = handle.get_colors()[0] legline.set_color(color) legline.set_linewidth(lw) - legline.set_dashes(dashes) + if dashes[0] is not None: # dashed line + legline.set_dashes(dashes[1]) handle_list.append(legline) elif isinstance(handle, RegularPolyCollection): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |