Skip to content

Commit

Permalink
fix fillalpha for surface on pyplot
Browse files Browse the repository at this point in the history
  • Loading branch information
daschw committed Feb 19, 2021
1 parent d59f6c9 commit 100da5c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/backends/pyplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ---------------------------------------------------------------------------

Expand Down

0 comments on commit 100da5c

Please sign in to comment.