comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Fill intersection of two contours
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Fill intersection of two contours [message #55462 is a reply to message #55461] Wed, 22 August 2007 08:22 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
While I am sure there is a much more elegant solution this one works
pretty well. I have hacking this kinda thing together before. I
would love to see the more elegant solution...

dat = dist(100)
loadct, 0
contour, dist(100), /fill, nlevels=20
mask = dat gt 30 and dat lt 40
loadct, 12
contour, mask*100, /over, /fill, nlevels=1
end

To be more specific on the filled region you might need to specify the
contours in the original plot so that the colored region falls on top
of it nicely.

Cheers,

Brian






------------------------------------------------------------ ---------------------
Brian Larsen
Boston University
Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: SOS with Idl
Next Topic: Pson and Psoff with xyouts

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:22:38 PDT 2025

Total time taken to generate the page: 0.80103 seconds