Revision: 8645
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8645&view=rev
Author: efiring
Date: 2010年08月17日 18:12:23 +0000 (2010年8月17日)
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.