Re: trigrid + triangulate -> zero values -> ignore zeros on cgcontour [message #87379 is a reply to message #87303] |
Wed, 29 January 2014 06:19   |
jkobori19
Messages: 8 Registered: January 2014
|
Junior Member |
|
|
On Thursday, January 23, 2014 5:36:08 PM UTC+1, David Fanning wrote:
> jkobori19@gmail.com writes:
>
>
>
>> Actually, one more thing: when I ignore zeros, there will be less color levels on the plot, since the color corresponding to zero disappears. Is there a solution for this?
>
>
>
> Define more levels? Add a background color? Up to you, I guess. :-)
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Unfortunately, defining more levels doesn't solve my problem. I would like
to set the color levels so that they ignore the zeros and the starting level would correspond to the next value in the matrix. E.g.,
the elements start from a value of 13.83, the max value is 29.98.
The color table is 33 (cgloadct, 33), so the cgcolorbar shows colors from red to blue with continous transition, but the colors on the cgcontour are only from yellow to red.
I'm sorry if the solution is actually simple, I'm just a little bit confused with these color levels.
|
|
|