JuliaPlots / PlotThemes.jl

Themes for the Julia plotting package Plots.jl
Other
122 stars 29 forks source link

Added non-continuous gradients from colorbrewer #33

Closed ValentinKaisermayer closed 4 years ago

ValentinKaisermayer commented 5 years ago

At least for line plots this seems better than https://github.com/JuliaPlots/PlotUtils.jl/pull/67

daschw commented 5 years ago

Thanks! I think

for sym in (:Set1, :Set2, ...)
    _themes[sym] = PlotTheme(
        palette = expand_palette(colorant"white", cgrad(sym).colors; lchoices = [57], cchoices = [100]),
    )
end

should also work as a shorter implementation. It uses cgrad from PlotUtils

daschw commented 5 years ago

... but requires a new release from PlotUtils.

mkborregaard commented 5 years ago

I don't think this is the right place to add the palettes - we should fix this in PlotUtils

daschw commented 5 years ago

Right, then one could just do theme(palette = :grad) or default(palette = :grad) for any :grad defined in PlotUtils.

BeastyBlacksmith commented 4 years ago

I think this is also resolved by the ColorSchemes integration