Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 461ff27

Browse files
committed
Fix exception when plotting legend for LineCollection (Thanks to Paul Novak).
svn path=/trunk/matplotlib/; revision=4872
1 parent be76b74 commit 461ff27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def _get_handles(self, handles, texts):
272272
legline.set_clip_box(None)
273273
legline.set_clip_path(None)
274274
lw = handle.get_linewidth()[0]
275-
dashes = handle.get_dashes()
275+
dashes = handle.get_dashes()[0]
276276
color = handle.get_colors()[0]
277277
legline.set_color(color)
278278
legline.set_linewidth(lw)

0 commit comments

Comments
 (0)