From a3e8af40b2dcb684cf52828b42598dfcfb9498f4 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 10 May 2018 22:21:50 +0200 Subject: [PATCH] make get_***color return plot_color --- src/utils.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 1bfc2651..9c085f50 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -624,7 +624,7 @@ function get_linecolor(series, i::Int = 1) lc = series[:linecolor] lz = series[:line_z] if lz == nothing - isa(lc, ColorGradient) ? lc : _cycle(lc, i) + isa(lc, ColorGradient) ? lc : plot_color(_cycle(lc, i)) else cmin, cmax = get_clims(series[:subplot]) grad = isa(lc, ColorGradient) ? lc : cgrad() @@ -648,7 +648,7 @@ function get_fillcolor(series, i::Int = 1) fc = series[:fillcolor] fz = series[:fill_z] if fz == nothing - isa(fc, ColorGradient) ? fc : _cycle(fc, i) + isa(fc, ColorGradient) ? fc : plot_color(_cycle(fc, i)) else cmin, cmax = get_clims(series[:subplot]) grad = isa(fc, ColorGradient) ? fc : cgrad() @@ -664,7 +664,7 @@ function get_markercolor(series, i::Int = 1) mc = series[:markercolor] mz = series[:marker_z] if mz == nothing - isa(mc, ColorGradient) ? mc : _cycle(mc, i) + isa(mc, ColorGradient) ? mc : plot_color(_cycle(mc, i)) else cmin, cmax = get_clims(series[:subplot]) grad = isa(mc, ColorGradient) ? mc : cgrad()