From 802b20be6f4d81b664d9d7c1ae931312db326de5 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 15 Dec 2017 10:30:56 +0100 Subject: [PATCH] update showtheme recipe --- src/themes.jl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/themes.jl b/src/themes.jl index adf9df24..64f15102 100644 --- a/src/themes.jl +++ b/src/themes.jl @@ -77,15 +77,16 @@ _get_showtheme_args(thm::Symbol, func::Symbol) = thm, get(_color_functions, func defaults = _get_defaults(thm) # get the gradient - gradient_colors = pop!(defaults, :gradient, cgrad(:inferno).colors) + gradient_colors = get(defaults, :gradient, cgrad(:inferno).colors) gradient = cgrad(cfunc.(RGB.(gradient_colors))) # get the palette - palette = pop!(defaults, :palette, get_color_palette(:auto, plot_color(:white), 17)) + palette = get(defaults, :palette, get_color_palette(:auto, plot_color(:white), 17)) palette = cfunc.(RGB.(palette)) # apply the theme for k in keys(defaults) + k in (:gradient, :palette) && continue def = defaults[k] arg = get(_keyAliases, k, k) plotattributes[arg] = if typeof(def) <: Colorant @@ -110,7 +111,6 @@ _get_showtheme_args(thm::Symbol, func::Symbol) = thm, get(_color_functions, func subplot := 1 palette := palette seriestype := :path - linewidth := 2 cumsum(randn(50)) end @@ -118,8 +118,6 @@ _get_showtheme_args(thm::Symbol, func::Symbol) = thm, get(_color_functions, func subplot := 2 seriestype := :scatter palette := palette - markersize := 5 - markerstrokewidth := 0 marker := (:circle, :diamond, :star5, :square)[j] randn(10), randn(10) end