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

Home » Public Forums » archive » Overlaying filled contour plots
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: Overlaying filled contour plots [message #26060 is a reply to message #25956] Tue, 31 July 2001 06:37 Go to previous message
Simon de Vet is currently offline  Simon de Vet
Messages: 36
Registered: May 2000
Member
Craig Markwardt wrote:

> Pavel is on the right track here I think. Couldn't you do the following:
>
> y = on1 * 2 + on2
> contour, y, levels=[0,1,2,3]
>
> Then adjust your color table to match what you need. ( like, 0=black,
> 1=red, 2=blue, 3=purple).

This was my first idea, but I'm afraid of the interpolation that IDL does
automatically.

With just two possibilities, all entries are 1's or 0's, and IDL interpolates
the contour boundary as being halfway between the two, which is reasonable.

With four possibilities, the interpolation should cause some troubles. If I
have a 00 point given value 0 (black) next to a 11 point given value 3
(purple), IDL will interpolate a 1 and a 2 between them, so instead of a purple
bounding a black, I'll have a purple bounding a blue bounding a red bounding a
black. This interpolation gives misleading results, and I'd like to avoid it if
possible.

I'm also working with postscript output, and have never used TV output, so I
don't know if it's usable in my situation.


Thanks for the help. I'll keep playing, and see what I can come up with.


-- Simon
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: base widgets growing uncontrollably.... ?
Next Topic: OnExpose in ActiveX

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

Current Time: Fri Oct 10 02:45:03 PDT 2025

Total time taken to generate the page: 0.00237 seconds