CONTOUR problem ? [message #9995] |
Tue, 30 September 1997 00:00 |
hegde
Messages: 17 Registered: December 1995
|
Junior Member |
|
|
Hi,
I am trying to create a contour plot in a co-ordinate system created by
PLOT command. It used to work fine with IDL4.n. In IDL5.0, I see the axis
being drawn, but I don't see any contours. I have included a sample code.
I can avoid this by not using PLOT, ...., /NODATA statement. Can someone
explain this?.
Thanks in advance,
M. Hegde
---------------------------SAMPLE CODE-----------------------------------
dim = [ 121, 101 ]
img = INTARR ( dim[0], dim[1] )
OPENR, unit, '/disk2/junk/2dlog.bin', /GET_LUN
READU, unit, img
FREE_LUN, unit
x = 0.0 + 0.0025*FINDGEN( dim[0] )
y = -.1 + 0.0025*FINDGEN( dim[1] )
PLOT, x, y, XRANGE=[0.0, 0.3], YRANGE=[-.1,.15], /NODATA, XSTYLE=1, YSTYLE=1
bad = WHERE ( img LT 2, count )
img[bad] = 0L
CONTOUR, img, x, y, MAX_VALUE=10, MIN_VALUE=3, NLEVELS=4, /OVERPLOT
END
|
|
|