fix passing a vector of colors

This commit is contained in:
Daniel Schwabeneder 2019-04-04 11:26:12 +02:00
parent e72fa1dc74
commit 7f2a1db64a

View File

@ -1522,7 +1522,7 @@ function get_series_color(c, sp::Subplot, n::Int, seriestype)
end end
function get_series_color(c::AbstractArray, sp::Subplot, n::Int, seriestype) function get_series_color(c::AbstractArray, sp::Subplot, n::Int, seriestype)
map(x->get_series_color(x, sp, n), c, seriestype) map(x->get_series_color(x, sp, n, seriestype), c)
end end
function ensure_gradient!(plotattributes::KW, csym::Symbol, asym::Symbol) function ensure_gradient!(plotattributes::KW, csym::Symbol, asym::Symbol)
@ -1567,7 +1567,7 @@ function _update_series_attributes!(plotattributes::KW, plt::Plot, sp::Subplot)
end end
# update series color # update series color
scolor = plotattributes[:seriescolor] scolor = plotattributes[:seriescolor]
stype = plotattributes[:seriestype] stype = plotattributes[:seriestype]
plotattributes[:seriescolor] = scolor = get_series_color(scolor, sp, plotIndex, stype) plotattributes[:seriescolor] = scolor = get_series_color(scolor, sp, plotIndex, stype)