bluewhitered

版本 1.0.0.0 (1.9 KB) 作者: Nathan Childress
Blue, white, and red colormap for images with positive and negative values.
11.7K 次下载
更新时间 2003/10/14

查看许可证

BLUEWHITERED(M) returns an M-by-3 matrix containing a blue to white to red colormap, with white corresponding to the CAXIS value closest to zero. This colormap is most useful for images and surface plots with positive and negative values. BLUEWHITERED, by itself, is the same length as the current colormap.

Examples:
------------------------------
figure
imagesc(peaks(250));
colormap(bluewhitered(256)), colorbar

figure
imagesc(peaks(250), [0 8])
colormap(bluewhitered), colorbar

figure
imagesc(peaks(250), [-6 0])
colormap(bluewhitered), colorbar

figure
surf(peaks)
colormap(bluewhitered)
axis tight

引用格式

Nathan Childress (2024). bluewhitered (https://www.mathworks.com/matlabcentral/fileexchange/4058-bluewhitered), 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.0.0.0