reset theme with :none/:default

This commit is contained in:
Thomas Breloff 2016-10-12 13:34:07 -04:00
parent d136977fc4
commit 9d64914e62

View File

@ -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(;