bar3 color change
34 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
yp78
am 9 Dez. 2021
Beantwortet: Awais Saeed
am 9 Dez. 2021
I am referring to this site for the 3D bar graph. How can I change/specify the color of each bar graph by column?
For example, how can I change the third bar chart from yellow to red?
load count.dat
Z = count(1:10,:);
figure
bar3(Z)
title('Detached Style')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/828420/image.png)
0 Kommentare
Akzeptierte Antwort
Awais Saeed
am 9 Dez. 2021
load count.dat
Z = count(1:10,:);
h = bar3(Z);
title('Detached Style')
set(h(3),'facecolor','red');
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polygons 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!