|
From: <md...@us...> - 2008-07-02 15:36:45
|
Revision: 5706
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5706&view=rev
Author: mdboom
Date: 2008-07-02 08:36:38 -0700 (Wed, 02 Jul 2008)
Log Message:
-----------
Fix bug using autolegend with LineCollection.
Modified Paths:
--------------
branches/v0_91_maint/lib/matplotlib/legend.py
Modified: branches/v0_91_maint/lib/matplotlib/legend.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/legend.py 2008-07-02 11:08:22 UTC (rev 5705)
+++ branches/v0_91_maint/lib/matplotlib/legend.py 2008-07-02 15:36:38 UTC (rev 5706)
@@ -375,11 +375,11 @@
for handle in ax.collections:
if isinstance(handle, LineCollection):
- hlines = handle.get_lines()
+ hlines = handle._segments
trans = handle.get_transform()
for line in hlines:
tline = trans.seq_xy_tups(line)
- aline = [inv(v) for v in tline]
+ aline = [inv(tuple(v)) for v in tline]
lines.append(aline)
return [vertices, bboxes, lines]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|