Skip to content

Improved handling of out-of-range values #144

Description

@matthiasschabel

I've been building a colormap browser/editor for napari that includes cmap, but has a number of extensions (see this discussion on napari chat). Wondering what the level of interest/willingness is to consider upstreaming some of these. One aspect, in particular, is the handling of OOR numbers. Given that floating point values (IEEE-754) are typical representations of much of the data in scientific visualization, a slightly richer special colors handling system would be nice. There are essentially six distinguishable cases for mapping of a float value to an indexed color: -inf, below specified lower bound, in bounds, above specified upper bound, +inf, and NaN. cmap doesn't currently offer a mechanism for specifically handling the infinities, even though those are potentially useful to discriminate (there is a discussion in the comments in the linked thread above).

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