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