From 100da5ccae266c258174cd24a254650b49d969fd Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 19 Feb 2021 20:59:48 +0100 Subject: [PATCH] fix fillalpha for surface on pyplot --- src/backends/pyplot.jl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index f65460e5..83899620 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -205,9 +205,15 @@ function fix_xy_lengths!(plt::Plot{PyPlotBackend}, series::Series) end end -py_linecolormap(series::Series) = py_colormap(series[:linecolor]) -py_markercolormap(series::Series) = py_colormap(series[:markercolor]) -py_fillcolormap(series::Series) = py_colormap(series[:fillcolor]) +function py_linecolormap(series::Series) + py_colormap(cgrad(get_linecolor(series), alpha=get_linealpha(series))) +end +function py_markercolormap(series::Series) + py_colormap(cgrad(get_markercolor(series), alpha=get_markeralpha(series))) +end +function py_fillcolormap(series::Series) + py_colormap(cgrad(get_fillcolor(series), alpha=get_fillalpha(series))) +end # ---------------------------------------------------------------------------