Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: surfc help
Date: Fri, 3 Aug 2007 21:26:39 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 18
Message-ID: <f906if$if4$1@fred.mathworks.com>
References: <f905js$ru7$1@fred.mathworks.com>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186176399 18916 172.30.248.35 (3 Aug 2007 21:26:39 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 3 Aug 2007 21:26:39 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:422412


John L:
<SNIP wants to move his/her contours along the z-axis...

one of the solutions

% the plot
	sh=surfc(peaks(32));
% the engine
	sh=findall(sh,'type','patch');
	zi=get(gca,'zlim');
for	i=1:numel(sh)
	zd=get(sh(i),'zdata');
	zd=zi(2)*ones(size(zd))+5;
	set(sh(i),'zdata',zd);
	set(sh(i),'linewidth',2);
end

us