8000 Issue 1504: changed how `draw` handles alpha in `markerfacecolor` by tacaswell · Pull Request #1505 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Issue 1504: changed how draw handles alpha in markerfacecolor #1505

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

Merged
merged 5 commits into from
Jan 14, 2013
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
added guards to deal with 'none' case properly
  • Loading branch information
tacaswell authored and Thomas A Caswell committed Jan 12, 2013
commit 639034dfcaafd433fb0d815d7c77dbe8163aebee
6 changes: 4 additions & 2 deletions lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,13 +574,15 @@ def draw(self, renderer):
marker_trans = marker_trans.scale(w)
else:
gc.set_linewidth(0)
gc.set_alpha(rgbaFace[3])
if rgbaFace is not None:
gc.set_alpha(rgbaFace[3])
renderer.draw_markers(
gc, marker_path, marker_trans, subsampled, affine.frozen(),
rgbaFace)
alt_marker_path = marker.get_alt_path()
if alt_marker_path:
gc.set_alpha(rgbaFaceAlt[3])
if rgbaFaceAlt is not None:
gc.set_alpha(rgbaFaceAlt[3])
alt_marker_trans = marker.get_alt_transform()
alt_marker_trans = alt_marker_trans.scale(w)
renderer.draw_markers(
Expand Down
0