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

Home » Public Forums » archive » CONTOUR problem ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
CONTOUR problem ? [message #9995] Tue, 30 September 1997 00:00
hegde is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Object Models for Data?
Next Topic: AVI reader

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

Current Time: Wed Oct 08 18:40:26 PDT 2025

Total time taken to generate the page: 0.00519 seconds