Revision: 8645
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8645&view=rev
Author:   efiring
Date:     2010-08-17 18:12:23 +0000 (Tue, 17 Aug 2010)

Log Message:
-----------
backend_macosx: second try: strip alpha only if rgbFace is not None

Modified Paths:
--------------
    branches/v1_0_maint/lib/matplotlib/backends/backend_macosx.py

Modified: branches/v1_0_maint/lib/matplotlib/backends/backend_macosx.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/backends/backend_macosx.py       
2010-08-17 17:01:48 UTC (rev 8644)
+++ branches/v1_0_maint/lib/matplotlib/backends/backend_macosx.py       
2010-08-17 18:12:23 UTC (rev 8645)
@@ -50,15 +50,15 @@
 
     def draw_path(self, gc, path, transform, rgbFace=None):
         if rgbFace is not None:
-            rgbFace = tuple(rgbFace)
+            rgbFace = tuple(rgbFace[:3])
         linewidth = gc.get_linewidth()
-        gc.draw_path(path, transform, linewidth, rgbFace[:3])
+        gc.draw_path(path, transform, linewidth, rgbFace)
 
     def draw_markers(self, gc, marker_path, marker_trans, path, trans, 
rgbFace=None):
         if rgbFace is not None:
-            rgbFace = tuple(rgbFace)
+            rgbFace = tuple(rgbFace[:3])
         linewidth = gc.get_linewidth()
-        gc.draw_markers(marker_path, marker_trans, path, trans, linewidth, 
rgbFace[:3])
+        gc.draw_markers(marker_path, marker_trans, path, trans, linewidth, 
rgbFace)
 
     def draw_path_collection(self, gc, master_transform, paths, all_transforms,
                              offsets, offsetTrans, facecolors, edgecolors,


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 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to