Path: news.mathworks.com!newsfeed-00.mathworks.com!panix!bloom-beacon.mit.edu!news2.wam.umd.edu!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Urgent! how to change the appearance of 3d bar?
Date: Fri, 6 Jun 2008 17:05:31 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 20
Message-ID: <g2bqor$nid$1@canopus.cc.umanitoba.ca>
References: <g2a5i0$qf7$1@news.stanford.edu>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1212771931 24141 192.70.172.160 (6 Jun 2008 17:05:31 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Fri, 6 Jun 2008 17:05:31 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:472579



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