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일

0 개 추천

load count.dat
Z = count(1:10,:);
h = bar3(Z);
title('Detached Style')
set(h(3),'facecolor','red');

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2021년 12월 9일

답변:

2021년 12월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by