bar3 color change

17 ビュー (過去 30 日間)
yp78
yp78 2021 年 12 月 9 日
回答済み: Awais Saeed 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 件)

カテゴリ

Find more on Change Markers in Help Center and File Exchange

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by