8000 Keep alpha on marker edges. Fixes #4580 by OceanWolf · Pull Request #4585 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Keep alpha on marker edges. Fixes #4580 #4585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ def get_snap(self):
"""
return self._snap

def set_alpha(self, alpha):
def set_alpha(self, alpha, update_foreground=True):
"""
Set the alpha value used for blending - not supported on all backends.
If ``alpha=None`` (the default), the alpha components of the
Expand All @@ -942,7 +942,9 @@ def set_alpha(self, alpha):
else:
self._alpha = 1.0
self._forced_alpha = False
self.set_foreground(self._rgb, isRGBA=True)

if update_foreground:
self.set_foreground(self._rgb, isRGBA=True)

def set_antialiased(self, b):
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ def draw(self, renderer):
else:
gc.set_linewidth(0)
if rgbaFace is not None:
gc.set_alpha(rgbaFace[3])
gc.set_alpha(rgbaFace[3], False)

renderer.draw_markers(gc, marker_path, marker_trans,
subsampled, affine.frozen(),
Expand Down
0