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 14:32:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <h5pb13$nnp$1@fred.mathworks.com>
References: <h5ovhi$jug$1@fred.mathworks.com> <h5p776$8pl$1@fred.mathworks.com> <h5p9i7$9gc$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 1249914723 24313 172.30.248.38 (10 Aug 2009 14:32:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 10 Aug 2009 14:32:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1371978
Xref: news.mathworks.com comp.soft-sys.matlab:562122


there should be several example in help colormap.

"Bahari " <baid69@yahoo.co.uk> wrote in message <h5p9i7$9gc$1@fred.mathworks.com>...
> Thanks a lot, could you pls give an example to create my own colormap. If I can reverse the colormap gray, I think, a little bit I can solve my problem.
> 
> Another things, I found this from matlab Help: 
> "[C,h,CF] = contourf(...) returns the contour matrix C as calculated by the function contourc and used by clabel, a vector of handles h to patch graphics objects (instead of a contourgroup object, for compatibility with MATLAB Version 6.5 and earlier) and a contour matrix CF for the filled areas."
> 
> I think this command can help me to solve my problem but  how to use this "[C,h,CF] = contourf(...)" I'm not so understand. Any one can help?
> 
> Regards
> 
> Bahari
> 
> 
> "Lorenzo Guerrasio" <lorenzo.guerrasio@email.it> wrote in message <h5p776$8pl$1@fred.mathworks.com>...
> > 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