Revision: 3961
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3961&view=rev
Author:   jdh2358
Date:     2007-10-18 08:02:13 -0700 (Thu, 18 Oct 2007)

Log Message:
-----------
Fixed collection.set_facecolor to respect alpha

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/collections.py
    trunk/matplotlib/lib/matplotlib/mlab.py

Modified: trunk/matplotlib/lib/matplotlib/collections.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/collections.py      2007-10-18 14:51:16 UTC 
(rev 3960)
+++ trunk/matplotlib/lib/matplotlib/collections.py      2007-10-18 15:02:13 UTC 
(rev 3961)
@@ -239,7 +239,8 @@
 
         ACCEPTS: matplotlib color arg or sequence of rgba tuples
         """
-        self._facecolors = _colors.colorConverter.to_rgba_list(c)
+        self._facecolors = _colors.colorConverter.to_rgba_list(c, self._alpha)
+
     def set_facecolors(self, c):
         self.set_facecolor(c)
 

Modified: trunk/matplotlib/lib/matplotlib/mlab.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mlab.py     2007-10-18 14:51:16 UTC (rev 
3960)
+++ trunk/matplotlib/lib/matplotlib/mlab.py     2007-10-18 15:02:13 UTC (rev 
3961)
@@ -1342,9 +1342,15 @@
     process_skiprows(reader)
 
 
+    def myfloat(x):
+        if x==missing:
+            return npy.nan
+        else:
+            return float(x)
+
     def get_func(item, func):
         # promote functions in this order
-        funcmap = {int:float, float:dateutil.parser.parse, 
dateutil.parser.parse:str}
+        funcmap = {int:myfloat, myfloat:dateutil.parser.parse, 
dateutil.parser.parse:str}
         try: func(item)
         except:
             if func==str:


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to