Colorbar labeling

版本 1.0.0.0 (2.0 KB) 作者: Fanny Besem
Pimp up your colorbars. And easily!
666.0 次下载
更新时间 2011/8/5

查看许可证

Awefully simple code in order to gain some time when trying to label the colorbars.
Works for individual plot or subplots, handles single- and multi-line labels on the top, bottom and/or right of the colorbar.

Input: colorbar handle ([] if unknown), label location ('top', 'bottom' or 'right'), indication for subplots (1 if subplots, 0 otherwise), text label (normal MatLab style)

Output: Nicely postioned labels for the colorbars

Warning: 1) If the label is too close to the colorbar or graph, try reapplying the function, it will largen up the gap

Example: colorbarlabel([],'r',0,[{'String line1'},{'String line2'}])

引用格式

Fanny Besem (2026). Colorbar labeling (https://ww2.mathworks.cn/matlabcentral/fileexchange/32437-colorbar-labeling), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
版本 已发布 发行说明
1.0.0.0