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

Home » Public Forums » archive » Need help with CONTOUR shading error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Need help with CONTOUR shading error [message #1809] Fri, 11 March 1994 12:31
mark is currently offline  mark
Messages: 28
Registered: September 1992
Junior Member
I just installed IDL 3.5.1 and I'm having a problem with shading in the routine
CONTOUR. On some plots, the shade values for higher contours are not used, so
all values above a certain level get the same color, even though c_colors
specifies otherwise. The following code illustrates the problem:

set_plot,'ps'
z=fltarr(3,2)
z(*,0)=[.1,.65,.95]
z(*,1)=[.11,.65,.94]
lev=findgen(10)/10.
contour,z,/fill,levels=lev,c_colors=[100,200]
contour,z,/follow,levels=lev,c_charsize=2.,/overplot
device,/close
end

The resulting plot has the same shade value above .6, even though it should
have alternating dark and light bands. Curiously, if I set z(0,1)=.1, the
shading works. If instead I set z(2,1)=.95, it still fails.

I remember that there was a discussion in this group about this type of problem
several weeks ago. Can someone point me toward the solution?

Thanks,

-Mark Baldwin (mark@nwra.com)
[Message index]
 
Read Message
Previous Topic: Re: IDL for windows 3.5.1 bugs
Next Topic: Re: Anaglyph display by IDL ?

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

Current Time: Sat Oct 11 23:21:52 PDT 2025

Total time taken to generate the page: 0.95922 seconds