Re: Filled Contour Colors on Maps Incorrect [message #26811 is a reply to message #26809] |
Wed, 26 September 2001 05:44   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Martin Downing (martin.downing@ntlworld.com) writes:
> The CONTOUR bug can be illustrated very well in your code by just switching
> off /FILL in the first contour call, or trying this to illustrate it:
>
>
> Map_Set, 0, 180, /CYLINDRICAL, LIMIT=limit, $
> Position=[0.1,0.15,0.9,0.9], $
> Color=white, charsize=2
> ; edited first call with FILL unset
> Contour, data, lons, lats, $
> C_Colors=cn, Color=WHITE, $black, $
> Max_Value=cmax, Min_Value=cmin, $
> Levels=clevels, /OVERPLOT
> wait , 5 ; Time to see that the unfilled contours make sense
> ; now do the original call:
> Contour, data, lons, lats, $
> C_Colors=cn, Color=WHITE, $black, $
> Max_Value=cmax, Min_Value=cmin, $
> Levels=clevels, /FILL, /OVERPLOT
> ; Oh dear - the filled contours have has no relation to the unfilled
> contours
No, alas. If I try to overplot filled contours
onto a previously constructed contour plot, the colors
are correct ONLY if that contour plot is not associated
with a map projection.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|