From ad55551819848b2a34683f61b22abc601be6869a Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sat, 7 Apr 2018 08:55:52 +0200 Subject: [PATCH] allow to set the theme in PLOTS_DEFAULTS --- src/Plots.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Plots.jl b/src/Plots.jl index f1026810..8cf0f564 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -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