Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: coloring contour plot
Date: Mon, 10 Aug 2009 11:16:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <h5ovhi$jug$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1249902963 20432 172.30.248.35 (10 Aug 2009 11:16:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 10 Aug 2009 11:16:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1653683
Xref: news.mathworks.com comp.soft-sys.matlab:562077


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