bug in 'axis'? [message #44552] |
Tue, 28 June 2005 12:57  |
Grant W. Petty
Messages: 2 Registered: June 2005
|
Junior Member |
|
|
I am using IDL (Version 5.4 (linux x86)) routines 'scale3', 'shade_volume',
'polyshade', and 'tvscl' to render and display a 3-D array. I am
subsequently using 'axis' to add cartesian axes to the rendered image.
Everything works fine, PROVIDED that there is a call to 'plot' somewhere
before the first call to 'axis'. It doesn't matter what I'm plotting or
how things are scaled, but if I comment out the call to plot, the later
'axis' call renders what appears to be an axis of zero length.
It's not clear to me why 'axis' should depend on a prior call to 'plot'.
Is there a system variable that needs to be initialized before the call to
'axis'? Can I do this without a 'plot' call?
Here is a stripped down program that illustrates the problem:
;----------------------------
ndim2 = 64
pixels = 256
window, 0, xsize=2*pixels, ysize=2*pixels
window, 1, xsize=2*pixels, ysize=2*pixels
depth=3.2
wset, 0
; when the following line is commented out, the axis call at the
; bottom does not give the expected result
;
; plot, [0.0,1.0], [0.0,1.0]
scale3, xrange=[0,63],yrange=[0,63],zrange=[0,63]
wset, 1
axis, ndim2, ndim2, 0, /T3D, charsize=2, zaxis = 1, zrange=[0, depth]
; ----------------------------
________________________________________
Prof. Grant W. Petty
Atmospheric and Oceanic Sciences
1225 W. Dayton Street
University of Wisconsin-Madison
Madison, WI 53706
gpetty@aos.wisc.edu
Tel: (608) 263-3265
Fax: (608) 262-0166
|
|
|