Coloured bar chart

Simple wrapper to bar allowing you to specify bar colors and labels.

您现在正在关注此提交

Quite frequently you want to color the bars in a bar chart according to your own scheme - e.g. to highlight an anomalous measurement in red. The bar function doesn't make it easy to do this, but there is a way.
Also, only occasionally do you want the x-axis labels to be the default 1 2 3 ... So for convenience this function takes a series, a colour vector, and a list of labels.

引用格式

Malcolm McLean (2026). Coloured bar chart (https://ww2.mathworks.cn/matlabcentral/fileexchange/29882-coloured-bar-chart), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: superbar

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

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

Toolbox

1.0.0.0