Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news.litech.org!News.Dal.Ca!newsflash.concordia.ca!canopus.cc.umanitoba.ca!tribune.usask.ca!support1.mathforum.org!not-for-mail
From: Matt Hughes <zapwow@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: waterfall colours
Date: Mon, 20 Oct 2008 13:12:17 EDT
Organization: The Math Forum
Lines: 6
Message-ID: <13906319.1224522768423.JavaMail.jakarta@nitrogen.mathforum.org>
References: <gdicka$pal$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1224522768 27185 144.118.30.135 (20 Oct 2008 17:12:48 GMT)
X-Complaints-To: news@mathforum.org
NNTP-Posting-Date: Mon, 20 Oct 2008 17:12:48 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:496307


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);