Does anyone know how to plot 4 different bar graphs on 1 figure? mine erased one bar, can you advice?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Xueyi Li
am 30 Jun. 2020
Bearbeitet: Xueyi Li
am 2 Jul. 2020
Hi , I have a question on how to plot 4 different bar graphs on 1 figure
1 Kommentar
Akzeptierte Antwort
Duijnhouwer
am 30 Jun. 2020
Bearbeitet: Duijnhouwer
am 30 Jun. 2020
your values aren't stacked, they are simply plot on top of each other. The cyan values must be to low and don't stick out above the rest, they are occluded.
Plot the stacked bars in one go by making a single matrix of volstrFX and your other Y-variables as in the example in the bar documentation which plots 4 bars with 3 components each.
y = [2 2 3; 2 5 6; 2 8 9; 2 11 12]; % single matrix
bar(y,'stacked')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Bar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!