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

Home » Public Forums » archive » Re: How to plot multiple cgContour plots using the same colour levels (but containing differing data)
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: How to plot multiple cgContour plots using the same colour levels (but containing differing data) [message #88305 is a reply to message #88304] Thu, 10 April 2014 13:51 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Thursday, April 10, 2014 3:42:26 PM UTC-5, IDL Beginner wrote:
>
>
> Hell David,
>
>
>
> The above code for contour plot will not work when you have data that ranges between negative and positive . It works the above code when all your data have positive value.
>
>

Well, I'm not David, but you need to set the levels appropriately. This line:

levels = Indgen(16)*100

produces levels of 0, 100, ..., 1500. You should change that to something more appropriate for your data.

And, if you change the number of levels (here, 16) you'll need to change a few things in the rest of the code too.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: call ITK from IDL
Next Topic: Error with cg output and ImageMagick

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

Current Time: Wed Oct 08 18:20:44 PDT 2025

Total time taken to generate the page: 0.00197 seconds