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   |
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.
|
|
|