Bipolar Colormap
A symmetric colourmap, with neutral central color, diverging either side to warm colors for positive values, and cold colours for negative ones. This is useful for data where the sign is important, e.g. expansion/contraction in fluid visualisation. This map should allow slightly better distinction of different values within the hot or cold partitions, compared to a map with only two colours (like red-grey-green
The neutral gray-level is user-definable, and the order of the light/dark colors either side automatically switches to match light or dark gray in the centre.
There is also an option to produce a colormap with a linear intensity/luminance variation when results are converted to grayscale. This requires the neutral gray-level to be 0.5.
Citation pour cette source
Ged Ridgway (2024). Bipolar Colormap (https://www.mathworks.com/matlabcentral/fileexchange/26026-bipolar-colormap), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Graphics > Formatting and Annotation > Colormaps > Red >
- MATLAB > Graphics > Formatting and Annotation > Colormaps > Blue >
Tags
Remerciements
Inspiré par : CMRmap.m, mrgb2gray, Tools for NIfTI and ANALYZE image, colorGray, real2rgb & colormaps, Red Blue Colormap
A inspiré : squink(Colors,Gamma), jetwhite(Colours)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
bipolar_colormap/
bipolar_colormap/html/
Version | Publié le | Notes de version | |
---|---|---|---|
1.1.0.0 | This release responds to feedback, and includes a simple attempt at modifying some colormaps to yield a visually-pleasing colormap that degrades gracefully to linear luminance in grayscale. |
||
1.0.0.0 |