필터 지우기
필터 지우기

bar3 width depend on zdata?

조회 수: 3 (최근 30일)
Craig Cowled
Craig Cowled 2013년 4월 24일
Ok, so I know how to make the colours on my bar graph depend on zdata ..
h = bar3(data);
for ii = 1:length(h)
zdata = get(h(ii), 'Zdata');
set(h(ii), 'Cdata', -zdata)
end
colormap gray
But, I think it would look much better if I could also make the width of the bars depend on my zdata too. I've seen this done in papers, just got no idea how to do it. There is a width option for bar3 graphs, however, it appears to be a scalar value only.
Any help would be appreciated.
  댓글 수: 1
Craig Cowled
Craig Cowled 2013년 4월 25일
According to Matlab Support, this can't be done!!
I'm not going to give up on this, I'm pretty sure it can be done using patch. Will post a solution if I get one, but still keen to hear any other ideas.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by