colorscale

版本 1.4.0.1 (3.0 KB) 作者: Rob Comer
Add a color scale bar using part of the figure's colormap.
4.4K 次下载
更新时间 2016/9/1

查看许可证

COLORSCALE creates a color scale for use with an integer-valued image which has been encoded and quantized via a monotonic transformation from a real-valued array. The original array has physically meaningful units, but the image does not. The transformed image has been displayed with a direct mapping to the figure's colormap. (That is, the IMAGE object has a CDATAMAPPING of 'direct'.) The image and/or color scale may not use the entire colormap. The colormap may contain special values for null data areas, and these special values may be excluded from the scale bar. Or, the colormap may be deliberately partitioned and shared with a different image in the same figure, and that image may have its own, entirely distinct, color scale. In these cases, unlike the standard COLORBAR function, COLORSCALE can limit the displayed colors to the appropriate interval within the figure's colormap.

引用格式

Rob Comer (2024). colorscale (https://www.mathworks.com/matlabcentral/fileexchange/2558-colorscale), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.4.0.1

Updated license

1.4.0.0

Removed extraneous files. Minor clean-up and lint removal in colorscale.m.

1.1.0.0

Shortened summary. Adjusted wrapping in comment block. Updated copyright. Removed minor lint.

1.0.0.0