colorGray

Creates full spectrum, blue-green-orange-salmon, colormap that maps to linear grayscale.

您现在正在关注此提交

Creates a broad range color map that looks good in color as well as when reduced to grayscale for low cost publication.

Finished colormap encodes small values with a bluish color, intermediate values in green to orange, and large values with a redish/salmon color. The greyscale is linear.

RGBcolormap=colorGray(numberOfLevels,makeDebugPlot);

引用格式

Alexandre Tumlinson (2026). colorGray (https://ww2.mathworks.cn/matlabcentral/fileexchange/12804-colorgray), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: Bipolar Colormap

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0

input 'numberOfLevels' is now optional. Optimized for speed and readability by vectorizing code. Added the debug plotting options.

Thx to PederAxensten for suggestions and significant code snippet.