Skip to content

Simplify the color palette system #1081

@swharden

Description

@swharden

When new plottables are added, their default colors are defined by Plot.Palette which has collections of colors that live in classes in the Drawing.Colorsets namespace. ScottPlot, like matplotlib, defaults to the category10 color palette used by Vega and d3 originally developed at Tableau.

https://matplotlib.org/stable/users/dflt_style_changes.html#colors-color-cycles-and-colormaps
image

As we discovered in #1058, this palette system is hard to customize and largely undocumented. This issue/PR will explore if refactoring can simplify this process and make it easier for users to provide their own color palettes. At a minimum cookbook examples showing how to use custom palettes will be added.

This topic is closely related to #1036 but is more limited in scope.

EDIT: i want hue is a fantastic way to create custom palettes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions