🌐 AI搜索 & 代理 主页
Skip to content

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

@TD22057

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

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