cbarf

版本 1.0.0.0 (3.4 KB) 作者: M MA
Real filled colorbar
6.1K 次下载
更新时间 2008/5/14

查看许可证

Similar to the well known colorbarf but more realistic.

There are two things missing in colorbar and colorbarf:
1. the colorbar ticks are scaled according to the size of each interval.
2. when color is saturated at the upper limit, or when is white, below the lower limit, a triangle is added. The triangle means "more/less than". Such information is not provided by the existing tools, colorbar and colorbarf.
See the examples.

Besides, there is a bug (?) with contourf: in some cases, even with the levels specified, one additional level is added and corrensponds to the sourrounding line! In such case, colorbarf adds one box for this fake level!

Syntax: H=CBARF(DATA,LEVELS,MODE,SCALE)

Updated 13-7-2007 by adding the option SCALE for linear/non linear scale

引用格式

M MA (2024). cbarf (https://www.mathworks.com/matlabcentral/fileexchange/14290-cbarf), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Colormaps 的更多信息
致谢

参考作品: colorbarf

Community Treasure Hunt

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

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

Corrected colors for the nonlinear case