updated function names

This commit is contained in:
Michael K. Borregaard 2017-02-27 21:52:22 +01:00
parent 5465479e57
commit 6b94bbac2d

View File

@ -2,8 +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.set_clibrary(:Plots) PlotUtils.clibrary(:Plots)
PlotUtils.cgraddefaults(:inferno) PlotUtils.default_cgrad(:inferno)
default(; default(;
bg = :white, bg = :white,
bglegend = :match, bglegend = :match,
@ -24,8 +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.set_clibrary(:Plots) PlotUtils.clibrary(:Plots)
PlotUtils.cgraddefaults(default = PlotThemes.gradient_name(s)) PlotUtils.default_cgrad(default = PlotThemes.gradient_name(s))
end end
default(; default(;
bg = thm.bg_secondary, bg = thm.bg_secondary,