updated function names
This commit is contained in:
parent
5465479e57
commit
6b94bbac2d
@ -2,8 +2,8 @@
|
||||
function theme(s::Symbol; kw...)
|
||||
# reset?
|
||||
if s == :none || s == :default
|
||||
PlotUtils.set_clibrary(:Plots)
|
||||
PlotUtils.cgraddefaults(:inferno)
|
||||
PlotUtils.clibrary(:Plots)
|
||||
PlotUtils.default_cgrad(:inferno)
|
||||
default(;
|
||||
bg = :white,
|
||||
bglegend = :match,
|
||||
@ -24,8 +24,8 @@ function theme(s::Symbol; kw...)
|
||||
# update the default gradient and other defaults
|
||||
thm = PlotThemes._themes[s]
|
||||
if thm.gradient != nothing
|
||||
PlotUtils.set_clibrary(:Plots)
|
||||
PlotUtils.cgraddefaults(default = PlotThemes.gradient_name(s))
|
||||
PlotUtils.clibrary(:Plots)
|
||||
PlotUtils.default_cgrad(default = PlotThemes.gradient_name(s))
|
||||
end
|
||||
default(;
|
||||
bg = thm.bg_secondary,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user