Need help with CONTOUR shading error [message #1809] |
Fri, 11 March 1994 12:31 |
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)
|
|
|