Coloured bar chart
Versione 1.2 (1,3 KB) da
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.
Cita come
Malcolm McLean (2026). Coloured bar chart (https://it.mathworks.com/matlabcentral/fileexchange/29882-coloured-bar-chart), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2009b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Bar Plots in Help Center e MATLAB Answers
Tag
Riconoscimenti
Ispirato: superbar
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.2 | Toolbox |
|
|
| 1.0.0.0 |
