Merge pull request #1476 from daschw/default-theme

allow to set the theme in PLOTS_DEFAULTS
This commit is contained in:
Daniel Schwabeneder 2018-04-07 15:34:05 +02:00 committed by GitHub
commit d33331f650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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