Path: news.mathworks.com!not-for-mail
From: "Lorenzo Guerrasio" <lorenzo.guerrasio@email.it>
Newsgroups: comp.soft-sys.matlab
Subject: Re: coloring contour plot
Date: Mon, 10 Aug 2009 13:27:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <h5p776$8pl$1@fred.mathworks.com>
References: <h5ovhi$jug$1@fred.mathworks.com>
Reply-To: "Lorenzo Guerrasio" <lorenzo.guerrasio@email.it>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1249910822 9013 172.30.248.38 (10 Aug 2009 13:27:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 10 Aug 2009 13:27:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1371978
Xref: news.mathworks.com comp.soft-sys.matlab:562106


You could simply create your colormap and than load it everytime you make a figure.

"Bahari " <baid69@yahoo.co.uk> wrote in message <h5ovhi$jug$1@fred.mathworks.com>...
> Dear All,
> I want to color my contour base on value of Z, if Z<=1 the color will be white and if Z>1 the color will be light gray. 
> I succeed to plot the contour with the label as command below but still not success to coloring it.
> 
> [C,h]=contour(X,Y,Z);
> clabel(C,h,'FontSize',10,'Rotation',0);
> colormap gray
> 
> Thanks in advance for help.
> 
> Bahari