From: <md...@us...> - 2008-01-16 13:04:56
|
Revision: 4872 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4872&view=rev Author: mdboom Date: 2008-01-16 05:04:50 -0800 (Wed, 16 Jan 2008) Log Message: ----------- Fix exception when plotting legend for LineCollection (Thanks to Paul Novak). Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/legend.py Modified: trunk/matplotlib/lib/matplotlib/legend.py =================================================================== --- trunk/matplotlib/lib/matplotlib/legend.py 2008-01-15 20:52:27 UTC (rev 4871) +++ trunk/matplotlib/lib/matplotlib/legend.py 2008-01-16 13:04:50 UTC (rev 4872) @@ -272,7 +272,7 @@ legline.set_clip_box(None) legline.set_clip_path(None) lw = handle.get_linewidth()[0] - dashes = handle.get_dashes() + dashes = handle.get_dashes()[0] color = handle.get_colors()[0] legline.set_color(color) legline.set_linewidth(lw) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |