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.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to