
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
I want to print bar graphs of different color in same graph and with less width.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
clc; clear all; x = 0.5:0.125000:1; y = [0.5584 0.6661 0.7780 0.8000 0.8050]; figure; p1=bar(x,y,'stacked') hold on; set(p1,'FaceColor','red'); set(gca,'XTickLabel',{'A','B','C','D','E'}); ylabel('power') % y-axis label xlabel('method')
0 Kommentare
Antworten (1)
Xiaolei Du
am 1 Mai 2017
clc; clear all; x = 0.5:0.125000:1; y = [0.5584 0.6661 0.7780 0.8000 0.8050]; y = [y;zeros(1,length(x))]; bar(y,0.2);xlim([0 2]); set(gca,'XTickLabel',{'A B C D E',''}); ylabel('power') xlabel('method')

0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!