From 9d64914e628f0dc8340845e9e1497020e8a9b328 Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Wed, 12 Oct 2016 13:34:07 -0400 Subject: [PATCH] reset theme with :none/:default --- src/themes.jl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/themes.jl b/src/themes.jl index 16845ffb..9e4a3173 100644 --- a/src/themes.jl +++ b/src/themes.jl @@ -61,6 +61,25 @@ # ) function theme(s::Symbol; kw...) + # reset? + if s == :none || s == :default + default(; + bg = :white, + bglegend = :match, + bginside = :match, + bgoutside = :match, + fg = :auto, + fglegend = :match, + fggrid = :match, + fgaxis = :match, + fgtext = :match, + fgborder = :match, + fgguide = :match, + palette = :auto + ) + return + end + thm = PlotThemes._themes[s] PlotUtils._default_gradient[] = s default(;