Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Matlab grouped Barplot with lines

1 Ansicht (letzte 30 Tage)
Matthias Stark
Matthias Stark am 27 Aug. 2020
Geschlossen: Rik am 27 Aug. 2020
Hey all,
i have created some grouped bar plots, and i will add lines which connecting the maximum value of each bar group.
When i use follwowing code, only the middle line (green) is adjusted right. As the other lines also adjusted the the middle this is wrong.
How can i fix this?
A =[6700 13380 20060; 2250 4480 6700; 920 1810 2700; 690 1360 2030]
X = categorical({'1.0','2.0','4.0','5.28'});
a= bar (X,A)
T1 = [20060 6700 2700 2030]
T2 = [13380 4480 1810 1360]
T3 = [6700 2250 920 690 ]
plot (X,T1)
plot (X,T2)
plot (X,T3)

Antworten (0)

Produkte


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by