bar3 color change

37 次查看(过去 30 天)
yp78
yp78 2021-12-9
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')

采纳的回答

Awais Saeed
Awais Saeed 2021-12-9
load count.dat
Z = count(1:10,:);
h = bar3(Z);
title('Detached Style')
set(h(3),'facecolor','red');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polygons 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by