Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Fill a single contour
Date: Thu, 23 Sep 2010 18:07:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <i7g508$ba8$1@fred.mathworks.com>
References: <i7g39u$ip7$1@fred.mathworks.com> <55686517-6a00-477a-906d-542580ac87ab@m16g2000vbs.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1285265224 11592 172.30.248.35 (23 Sep 2010 18:07:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 23 Sep 2010 18:07:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2235717
Xref: news.mathworks.com comp.soft-sys.matlab:672650

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <55686517-6a00-477a-906d-542580ac87ab@m16g2000vbs.googlegroups.com>...
> Chuck37
> I never use pcolor.  I just don't like the fact that there is one
> fewer square in each direction than I have.  If you have the Image
> Processing Toolbox, you can use poly2mask() to create a binary image,
> then you can assign that to your image, or do a variety of other
> things.

I don't have the image toolbox.  I can use imagesc anyway to get around the pcolor weirdness if I need to.  I actually misspoke though, I'm really using a surface because that's the only way I could figure out to overlay contour and pcolor, I draw the contour on the Z=0 plane and either play with the alpha of the surface or look from an angle where the Z=0 is in front of the surface...

Regarding my original problem, I tried using the data underlying the contour, putting NaN's outside my region of interest and setting the rest to a value and then making a surface plot of that.  Didn't really work because (a) it looks pixelated, and (b) the color it selects is messed up because it just picks off of the existing colormap.  (b) could be worked around with some effort, but not (a).

Other ideas?