Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb1c28a

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

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed

‎lib/matplotlib/lines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/lines.py
+6-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.