NAWHIMAR Navy-White-Red Divergent Colormap with Automatic Scaling

Version (2.49 KB) by Thomas
Navy-White-Maroon Divergent Colormap with and without Automatic Scaling
Updated 26 Apr 2018

View License

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 (2024). NAWHIMAR Navy-White-Red Divergent Colormap with Automatic Scaling (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Blue in Help Center and MATLAB Answers

Inspired by: bluewhitered

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes