Revision: 6985
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6985&view=rev
Author:   efiring
Date:     2009-03-17 19:34:27 +0000 (Tue, 17 Mar 2009)

Log Message:
-----------
In contourf, don't accidentally set the edgecolor.

Modified Paths:
--------------
    branches/v0_98_5_maint/CHANGELOG
    branches/v0_98_5_maint/lib/matplotlib/contour.py

Modified: branches/v0_98_5_maint/CHANGELOG
===================================================================
--- branches/v0_98_5_maint/CHANGELOG    2009-03-17 19:15:01 UTC (rev 6984)
+++ branches/v0_98_5_maint/CHANGELOG    2009-03-17 19:34:27 UTC (rev 6985)
@@ -1,3 +1,6 @@
+2009-03-17 Fix bugs in edge color handling by contourf, found
+           by Jae-Joon Lee. - EF
+
 2009-03-11 Ensure wx version >= 2.8; thanks to Sandro Tosi and
            Chris Barker. - EF
 

Modified: branches/v0_98_5_maint/lib/matplotlib/contour.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/contour.py    2009-03-17 19:15:01 UTC 
(rev 6984)
+++ branches/v0_98_5_maint/lib/matplotlib/contour.py    2009-03-17 19:34:27 UTC 
(rev 6985)
@@ -629,8 +629,10 @@
                                 self.to_rgba(self.cvalues, alpha=self.alpha)]
         self.tcolors = tcolors
         for color, collection in zip(tcolors, self.collections):
-            collection.set_alpha(self.alpha)
-            collection.set_color(color)
+            if self.filled:
+                collection.set_facecolor(color)
+            else:
+                collection.set_color(color)
         for label, cv in zip(self.labelTexts, self.labelCValues):
             label.set_alpha(self.alpha)
             label.set_color(self.labelMappable.to_rgba(cv))


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to