Jet colormap with white zeros


Updated 1 Sep 2016

View License

colormap_whitejet(), without any arguments, changes the colormap to a jet colormap with 0 as white, and changes the color axes limits from 0 to the current color axes maximum.

map = colormap_whitejet(...) returns the colormap.

... = colormap_whitejet(hax,N) uses the axes specified by "hax" instead of the current axes, and creates a colormap with N values. Note that both inputs are optional.

Inputs (Optional):
- hax - Handle to axes (default: current axes)
- N - # of rows of desired colormap (default: 256)

Outputs (Optional):
- map - Resultant "white jet" colormap

Cite As

Nade Sritanyaratana (2023). colormap_whitejet (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on White in Help Center and MATLAB Answers
Tags Add Tags

Inspired: squink(Colors,Gamma)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Updated license