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).
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, andNaN. 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).