python - Matplotlib fill alpha changes color -
i trying make matplotlib create fill transparent using alpha command, seems change color. it's there way increase transparency without changing color?
ax.fill_between(x, 0, y[0], facecolor='#614126', interpolate=true, alpha=.3)
i've run similar issue, specifying alpha value caused color revert default blue. in case, able override whatever causing change using setp()
, so:
my_plot = ax.fill_between(x, 0, y[0], interpolate=true, alpha=.3) matplotlib.pyplot.setp(my_plot, facecolor='#614126')