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

Skip to content

Commit cb1c28a

Browse files
committed
Merge pull request #2 from tacaswell/mec_alpha
FIX: respect alpha on alt face color
2 parents 00590bd + f648d34 commit cb1c28a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/matplotlib/lines.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def draw(self, renderer):
755755
gc.set_linewidth(self._markeredgewidth)
756756
mec = self._markeredgecolor
757757
if (is_string_like(mec) and mec == 'auto' and
758-
rgbaFace is not None):
758+
rgbaFace is not None):
759759
gc.set_alpha(rgbaFace[3])
760760
else:
761761
gc.set_alpha(self.get_alpha())
@@ -794,6 +794,11 @@ def draw(self, renderer):
794794
if alt_marker_path:
795795
alt_marker_trans = marker.get_alt_transform()
796796
alt_marker_trans = alt_marker_trans.scale(w)
797+
if (is_string_like(mec) and mec == 'auto' and
798+
rgbaFaceAlt is not None):
799+
gc.set_alpha(rgbaFaceAlt[3])
800+
else:
801+
gc.set_alpha(self.get_alpha())
797802

798803
renderer.draw_markers(
799804
gc, alt_marker_path, alt_marker_trans, subsampled,

0 commit comments

Comments
 (0)