Put themes in Plots library

This commit is contained in:
Michael K. Borregaard 2017-02-27 21:47:12 +01:00
parent 6e74411a8e
commit 5465479e57

View File

@ -2,7 +2,7 @@
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(:matplotlib) PlotUtils.set_clibrary(:Plots)
PlotUtils.cgraddefaults(:inferno) PlotUtils.cgraddefaults(:inferno)
default(; default(;
bg = :white, bg = :white,
@ -24,7 +24,7 @@ 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(:plotthemes) PlotUtils.set_clibrary(:Plots)
PlotUtils.cgraddefaults(default = PlotThemes.gradient_name(s)) PlotUtils.cgraddefaults(default = PlotThemes.gradient_name(s))
end end
default(; default(;