You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Malcolm McLean (2026). Coloured bar chart (https://uk.mathworks.com/matlabcentral/fileexchange/29882-coloured-bar-chart), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: superbar
General Information
- Version 1.2 (1.3 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.2 | Toolbox |
|
|
| 1.0.0.0 |
