Skip to content

Commit 5a65481

Browse files
committed
Merged revisions 7776,7778 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint ........ r7776 | jdh2358 | 2009-09-17 13:06:02 -0400 (Thu, 17 Sep 2009) | 1 line add make.osx to manifest ........ r7778 | leejjoon | 2009-09-17 17:42:03 -0400 (Thu, 17 Sep 2009) | 1 line fix the legend bug that dash-style for LineCollections handle is set incorrectly ........ svn path=/trunk/matplotlib/; revision=7779
1 parent 25ccab8 commit 5a65481

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include CHANGELOG KNOWN_BUGS INSTALL
22
include INTERACTIVE TODO
3-
include Makefile MANIFEST.in MANIFEST
3+
include Makefile make.osx MANIFEST.in MANIFEST
44
include matplotlibrc.template setup.cfg.template
55
include __init__.py setupext.py setup.py setupegg.py
66
include examples/data/*

lib/matplotlib/legend.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ def _init_legend_box(self, handles, labels):
517517
color = handle.get_colors()[0]
518518
legline.set_color(color)
519519
legline.set_linewidth(lw)
520-
legline.set_dashes(dashes)
520+
if dashes[0] is not None: # dashed line
521+
legline.set_dashes(dashes[1])
521522
handle_list.append(legline)
522523

523524
elif isinstance(handle, RegularPolyCollection):

0 commit comments

Comments
 (0)