필터 지우기
필터 지우기

How I can define the group colour in 3D bar plot?

조회 수: 2 (최근 30일)
Bruno
Bruno 2017년 7월 22일
댓글: Bruno 2017년 7월 22일
Hi,
I did 3d bar plot:
Z = data(2000:4000,:); % data
Y = [1 300 600]; % The positions of bars along the y axis
h = bar3(Y,Z',0.1);
set(gca, 'YTickLabel', {'s1' 's2' 's3'});
I want s1 (green) s2( red) s3 (blue) (See Figure).
All suggestions are welcomed

답변 (1개)

Walter Roberson
Walter Roberson 2017년 7월 22일
Unfortunately in R2014b and all other released versions (currently R2017a), the only way to control color in bar charts is to call bar once per color you want to use.
  댓글 수: 5
Walter Roberson
Walter Roberson 2017년 7월 22일
Sorry, I do not know at the moment, and I think it is time for me to head to bed.
Bruno
Bruno 2017년 7월 22일
Thanks, for your help

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by