For example, say I want to plot with color='None'
but markeredgecolor='mediumseagreen'
with the edges having alpha=0.5
. Is that possible?
1 Answer
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)
kwargs
likemarkeredgecolor
andmarkeredgewidth
...so I was curious if there was an equivalent tomarkeredgealpha
. That would be very convenient in situations where themarkeredgecolor
is being set as something other than RGB. I.e. in my example, I'd like 50% opacity mediumseagreen. But I don't know the RGB value of mediumseagreen off the top of my head...markeredgealpha
kwarg that I'm pining for.matplotlib.colors.ColorConverter().to_rgba('mediumseagreen', alpha=0.5)
ColorConverter
calledcolorconvertor
so I would not say it is a typo.