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$>
References: <i7g39u$ip7$> <>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1285265224 11592 (23 Sep 2010 18:07:04 GMT)
NNTP-Posting-Date: Thu, 23 Sep 2010 18:07:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2235717
Xref: comp.soft-sys.matlab:672650

ImageAnalyst <> wrote in message <>...
> 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?