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

Skip to content

Commit 23fa33b

Browse files
committed
backend_macosx: second try: strip alpha only if rgbFace is not None
svn path=/branches/v1_0_maint/; revision=8645
1 parent 76c0edc commit 23fa33b

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
@@ -50,15 +50,15 @@ def set_width_height (self, width, height):
5050

5151
def draw_path(self, gc, path, transform, rgbFace=None):
5252
if rgbFace is not None:
53-
rgbFace = tuple(rgbFace)
53+
rgbFace = tuple(rgbFace[:3])
5454
linewidth = gc.get_linewidth()
55-
gc.draw_path(path, transform, linewidth, rgbFace[:3])
55+
gc.draw_path(path, transform, linewidth, rgbFace)
5656

5757
def draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace=None):
5858
if rgbFace is not None:
59-
rgbFace = tuple(rgbFace)
59+
rgbFace = tuple(rgbFace[:3])
6060
linewidth = gc.get_linewidth()
61-
gc.draw_markers(marker_path, marker_trans, path, trans, linewidth, rgbFace[:3])
61+
gc.draw_markers(marker_path, marker_trans, path, trans, linewidth, rgbFace)
6262

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

0 commit comments

Comments
 (0)