set defaults to sequential

This commit is contained in:
Michael K. Borregaard 2017-02-28 12:43:06 +01:00
parent 1b468ba5d8
commit 6f8881b610

View File

@ -3,7 +3,7 @@ function theme(s::Symbol; kw...)
# reset?
if s == :none || s == :default
PlotUtils.clibrary(:Plots)
PlotUtils.default_cgrad(:inferno)
PlotUtils.default_cgrad(default = :sequential, sequential = :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.clibrary(:hisc)
PlotUtils.default_cgrad(default = PlotThemes.gradient_name(s))
PlotUtils.clibrary(:misc)
PlotUtils.default_cgrad(default = :sequential, sequential = PlotThemes.gradient_name(s))
end
default(;
bg = thm.bg_secondary,