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? # reset?
if s == :none || s == :default if s == :none || s == :default
PlotUtils.clibrary(:Plots) PlotUtils.clibrary(:Plots)
PlotUtils.default_cgrad(:inferno) PlotUtils.default_cgrad(default = :sequential, sequential = :inferno)
default(; default(;
bg = :white, bg = :white,
bglegend = :match, bglegend = :match,
@ -24,8 +24,8 @@ 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.clibrary(:hisc) PlotUtils.clibrary(:misc)
PlotUtils.default_cgrad(default = PlotThemes.gradient_name(s)) PlotUtils.default_cgrad(default = :sequential, sequential = PlotThemes.gradient_name(s))
end end
default(; default(;
bg = thm.bg_secondary, bg = thm.bg_secondary,