Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: waterfall colours
Date: Mon, 20 Oct 2008 19:20:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <gdill4$r3t$1@fred.mathworks.com>
References: <gdicka$pal$1@fred.mathworks.com> <13906319.1224522768423.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1224530404 27773 172.30.248.37 (20 Oct 2008 19:20:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Oct 2008 19:20:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:496345


Matt Hughes <zapwow@gmail.com> wrote in message <13906319.1224522768423.JavaMail.jakarta@nitrogen.mathforum.org>...
> Try this out! It grabs the color data from a sideways plot and applies it to a right-way up plot.
> 
> h = waterfall(Z, X, Y);
> colors = get(h, 'CData');
> h2 = waterfall(X, Y, Z);
> set(h2, 'CData', colors);

yeah that works! nice workaround. thanks.