8one6
8one6

Reputation: 13788

Is it possible to set the marker edge alpha in Matplotlib?

For example, say I want to plot with color='None' but markeredgecolor='mediumseagreen' with the edges having alpha=0.5. Is that possible?

Upvotes: 22

Views: 11114

Answers (1)

Shovalt
Shovalt

Reputation: 6776

As answered in the comments:

Either pass the color as an RGBA tuple or get the RGBA value from colorConverter:

matplotlib.colors.colorConverter.to_rgba('mediumseagreen', alpha=.5)

Upvotes: 21

Related Questions