Skip to content

Clean up PLOTLY_SCALES constant #3185

Closed
@nicolaskruchten

Description

@nicolaskruchten

Right now we declare this in colors and tools (not DRY!) and this is a case-sensitive list that doesn't include all the new scales that are accepted by the validators. This list is reimported in a few places downstream within our own library.

Note also: the docstring of ColorscaleValidator hardcodes an incomplete list of the keys of this list 🤯

I came across this while trying to use "viridis" as a scale name with a newly-added function that reused the patterns in colors: #3136

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