Thread Subject: Urgent! how to change the appearance of 3d bar?

Subject: Urgent! how to change the appearance of 3d bar?

From: huhua

Date: 6 Jun, 2008 01:57:30

Message: 1 of 3

hi all,

We have been struggling with this "bar3" command for a while.

Please take a look.

The color bar doesn't show the height of the bars, but instead, it shows the
Y direction.

Is there a way to make the color map correspond to the height of the bars?

http://img361.imageshack.us/img361/4011/80201065kn3.jpg

Subject: Urgent! how to change the appearance of 3d bar?

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 6 Jun, 2008 17:05:31

Message: 2 of 3

In article <g2a5i0$qf7$1@news.stanford.edu>,
huhua <lunamoonmoon@gmail.com> wrote:

>We have been struggling with this "bar3" command for a while.

>The color bar doesn't show the height of the bars, but instead, it shows the
>Y direction.

>Is there a way to make the color map correspond to the height of the bars?

>http://img361.imageshack.us/img361/4011/80201065kn3.jpg

h = bar3(rand(15,25));
for K=1:length(h); set(h(K),'CData',get(h(K),'ZData'));end

This leaves one of the faces on each bar as blue; I do not know
why at the moment.
--
  "Do not on any account attempt to write on both sides of
  the paper at once." -- Walter C. Sellar

Subject: Urgent! how to change the appearance of 3d bar?

From: us

Date: 6 Jun, 2008 17:39:01

Message: 3 of 3

"huhua":
<SNIP wants to assign a color of a bar3-bar according to its
height

look at this solution:

http://groups.google.com/group/comp.soft-
sys.matlab/msg/a4ace5ac7754f9cc?dmode=source

(site address may/will be wrapped)
us

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
reference us 6 Jun, 2008 13:40:06
rssFeed for this Thread

Contact us at files@mathworks.com