allow to set the theme in PLOTS_DEFAULTS

This commit is contained in:
Daniel Schwabeneder 2018-04-07 08:55:52 +02:00
parent 8ba30c5453
commit ad55551819

View File

@ -296,8 +296,11 @@ const CURRENT_BACKEND = CurrentBackend(:none)
# for compatibility with Requires.jl: # for compatibility with Requires.jl:
@init begin @init begin
if isdefined(Main, :PLOTS_DEFAULTS) if isdefined(Main, :PLOTS_DEFAULTS)
if haskey(Main.PLOTS_DEFAULTS, :theme)
theme(Main.PLOTS_DEFAULTS[:theme])
end
for (k,v) in Main.PLOTS_DEFAULTS for (k,v) in Main.PLOTS_DEFAULTS
default(k, v) k == :theme || default(k, v)
end end
end end
end end