Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6eef9cc

Browse files
committed
Merged revisions 8645 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint ........ r8645 | efiring | 2010-08-17 08:12:23 -1000 (Tue, 17 Aug 2010) | 2 lines backend_macosx: second try: strip alpha only if rgbFace is not None ........ svn path=/trunk/matplotlib/; revision=8646
1 parent e264cf3 commit 6eef9cc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/backends/backend_macosx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ def set_width_height (self, width, height):
4949

5050
def draw_path(self, gc, path, transform, rgbFace=None):
5151
if rgbFace is not None:
52-
rgbFace = tuple(rgbFace)
52+
rgbFace = tuple(rgbFace[:3])
5353
linewidth = gc.get_linewidth()
54-
gc.draw_path(path, transform, linewidth, rgbFace[:3])
54+
gc.draw_path(path, transform, linewidth, rgbFace)
5555

5656
def draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace=None):
5757
if rgbFace is not None:
58-
rgbFace = tuple(rgbFace)
58+
rgbFace = tuple(rgbFace[:3])
5959
linewidth = gc.get_linewidth()
60-
gc.draw_markers(marker_path, marker_trans, path, trans, linewidth, rgbFace[:3])
60+
gc.draw_markers(marker_path, marker_trans, path, trans, linewidth, rgbFace)
6161

6262
def draw_path_collection(self, gc, master_transform, paths, all_transforms,
6363
offsets, offsetTrans, facecolors, edgecolors,

0 commit comments

Comments
 (0)