You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting both the markeredgecolor and the markerfacecolor as a rgba tuple, the transparency of both seems to be set to the one of markerfacecolor. Could this be a bug in matplotlib or am I making a mistake?
Minimal-ish example:
importmatplotlib.pyplotasplt# plot markers with varying alpha values for edge and face colorsalpha_faces= [1.0, 0.3, 0.7, 0.3]
alpha_edges= [1.0, 0.3, 0.3, 1.0]
forn, (af, ae) inenumerate(zip(alpha_faces, alpha_edges)):
plt.plot(n, 0, ms=20, mew=5, marker='s', mfc=(1,0,0,af), mec=(0,0,1,ae))
plt.text(n, 0.01, "$\\alpha$ edge: {}\n$\\alpha$ face {}".format(ae, af),
va='bottom', ha='center')
# a black line to make the transparency clearerplt.axhline(0, color='k', lw=3, zorder=0)
plt.xlim(-0.5, n+0.5)
plt.show()
When setting both the
markeredgecolor
and themarkerfacecolor
as a rgba tuple, the transparency of both seems to be set to the one ofmarkerfacecolor
. Could this be a bug in matplotlib or am I making a mistake?Minimal-ish example:
Result:
Versions: Ubuntu 12.04, python 2.7.3, matplotlib 1.4.3
I also posted this as a question on SO.
The text was updated successfully, but these errors were encountered: