Merge 5465479e5772b60d4a19c6eae191f9fa3908b498 into 8b90eb37c516e4bd74c4fdde420d453526815193

This commit is contained in:
Michael Krabbe Borregaard 2017-03-01 18:20:01 +00:00 committed by GitHub
commit c491c5b4b3

View File

@ -2,7 +2,8 @@
function theme(s::Symbol; kw...) function theme(s::Symbol; kw...)
# reset? # reset?
if s == :none || s == :default if s == :none || s == :default
PlotUtils._default_gradient[] = :inferno PlotUtils.set_clibrary(:Plots)
PlotUtils.cgraddefaults(:inferno)
default(; default(;
bg = :white, bg = :white,
bglegend = :match, bglegend = :match,
@ -23,7 +24,8 @@ function theme(s::Symbol; kw...)
# update the default gradient and other defaults # update the default gradient and other defaults
thm = PlotThemes._themes[s] thm = PlotThemes._themes[s]
if thm.gradient != nothing if thm.gradient != nothing
PlotUtils._default_gradient[] = PlotThemes.gradient_name(s) PlotUtils.set_clibrary(:Plots)
PlotUtils.cgraddefaults(default = PlotThemes.gradient_name(s))
end end
default(; default(;
bg = thm.bg_secondary, bg = thm.bg_secondary,