Skip to content

Some categorical colormaps are given as list of numerical RGB instead of list of hex strings #69

@TheoMathurin

Description

@TheoMathurin

colorcet 2.0.6

The colorcet user guide specifically mentions that it provides 'Bokeh-style' palettes as lists of hex strings, which is handy when working with Bokeh.

However, I realised this was not the case for some of the categorical palettes, including cc.glasbey_bw and cc.glasbey_hv. These return lists of RGB triplets which don't work with Bokeh.

Accessing these palettes by string name (e.g. cc.palette['glasbey_hv']) does yield a list of hex strings... so this is only an issue with regard to consistency.

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