Skip to content

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

Closed

Description

@TD22057

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

Activity

  1. ImportanceOfBeingErnest commented on Apr 23, 2018

    @ImportanceOfBeingErnest
    Member

    Should be the same as #11104

  2. jklymak commented on Apr 23, 2018

    @jklymak
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions