Recolors an image by applying a specified matplotlib colormap only to the colored pixels, while leaving grayscale pixels (including black, white, and shades of gray) untouched. Path to the source ...
All colormaps are currently created at import-time. Additionally, Colormap classes have a deferred initialization of their lookup table (I suspect to save memory/initialization cost). This design is ...