From 7f2a1db64a7c6eb1977211ff602299ce93706d3e Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 4 Apr 2019 11:26:12 +0200 Subject: [PATCH] fix passing a vector of colors --- src/args.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/args.jl b/src/args.jl index f721e754..13423b33 100644 --- a/src/args.jl +++ b/src/args.jl @@ -1522,7 +1522,7 @@ function get_series_color(c, sp::Subplot, n::Int, seriestype) end 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 function ensure_gradient!(plotattributes::KW, csym::Symbol, asym::Symbol) @@ -1567,7 +1567,7 @@ function _update_series_attributes!(plotattributes::KW, plt::Plot, sp::Subplot) end # update series color - scolor = plotattributes[:seriescolor] + scolor = plotattributes[:seriescolor] stype = plotattributes[:seriestype] plotattributes[:seriescolor] = scolor = get_series_color(scolor, sp, plotIndex, stype)