Coloured bar chart
Version 1.2 (1,3 KB) von
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.
Zitieren als
Malcolm McLean (2026). Coloured bar chart (https://de.mathworks.com/matlabcentral/fileexchange/29882-coloured-bar-chart), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2009b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Bar Plots finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: superbar
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.2 | Toolbox |
|
|
| 1.0.0.0 |
