From eab4cfdf2d4b4c5efe7e5daf285b0be2303da77e Mon Sep 17 00:00:00 2001 From: "Michael K. Borregaard" Date: Sun, 26 Feb 2017 17:23:43 +0100 Subject: [PATCH] allow color libraries to be used in PlotThemes --- src/themes.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/themes.jl b/src/themes.jl index 3429585a..feb665d6 100644 --- a/src/themes.jl +++ b/src/themes.jl @@ -2,7 +2,8 @@ function theme(s::Symbol; kw...) # reset? if s == :none || s == :default - PlotUtils._default_gradient[] = :inferno + PlotUtils.set_clibrary(:matplotlib) + PlotUtils.cgraddefaults(:inferno) default(; bg = :white, bglegend = :match, @@ -23,7 +24,8 @@ function theme(s::Symbol; kw...) # update the default gradient and other defaults thm = PlotThemes._themes[s] if thm.gradient != nothing - PlotUtils._default_gradient[] = PlotThemes.gradient_name(s) + PlotUtils.set_clibrary(:plotthemes) + PlotUtils.cgraddefaults(PlotThemes.gradient_name(s)) end default(; bg = thm.bg_secondary,