NAWHIMAR Navy-White-Red Divergent Colormap with Automatic Scaling

Navy-White-Maroon Divergent Colormap with and without Automatic Scaling

You are now following this Submission

Two MATLAB functions are provided. The first file "nawhimar.m" generates a divergent colormap, ranging from navy blue through bright blue (azure) to white and continuing through bright red to Maroon. The second file "nawhimar_auto.m" uses the current axes CLim property (or input values) to scale the colormap so that zero values appear white, and the maximal shade of blue/red is based on the amplitude relative the zero baseline.

Cite As

Thomas (2026). NAWHIMAR Navy-White-Red Divergent Colormap with Automatic Scaling (https://uk.mathworks.com/matlabcentral/fileexchange/67087-nawhimar-navy-white-red-divergent-colormap-with-automatic-scaling), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: bluewhitered

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0