Coloured bar chart
Versión 1.2 (1,3 KB) por
Malcolm McLean
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.
Citar como
Malcolm McLean (2026). Coloured bar chart (https://la.mathworks.com/matlabcentral/fileexchange/29882-coloured-bar-chart), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2009b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Bar Plots en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspiración para: superbar
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.2 | Toolbox |
|
|
| 1.0.0.0 |
