Skip to content

Line2D markfacecolor=None fails if set_alpha() is called #11113

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
TD22057 opened this issue Apr 23, 2018 · 2 comments
Closed

Line2D markfacecolor=None fails if set_alpha() is called #11113

TD22057 opened this issue Apr 23, 2018 · 2 comments

Comments

@TD22057
Copy link
Contributor

TD22057 commented Apr 23, 2018

Bug report

Calling Line2D with markerfacecolor='None' should yield a marker with just an outline. That works fine. But if a call to artist.set_alpha( X ) where is X is anything but None is made, then the marker is filled no matter what with black color and alpha=X.

Code for reproduction

import pylab as p
p.ion()
a=p.plot( [1,2], marker='o' )[0]

# Works, marker is unfilled
a.set_markerfacecolor( 'None' )

# Fails - marker is filled with grey
a.set_alpha( 0.5 )

Actual outcome

alpha_bug

Matplotlib version

  • Operating system: RedHat Linux 7
  • Matplotlib version: 2.2.2
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version: 2.7
@ImportanceOfBeingErnest
Copy link
Member

Should be the same as #11104

@jklymak
Copy link
Member

jklymak commented Apr 23, 2018

Yeah, I'll close as a duplicate, but feel free to comment on #11104 and the fix in #11105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants