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