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

Home » Public Forums » archive » bug in 'axis'?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
bug in 'axis'? [message #44552] Tue, 28 June 2005 12:57 Go to previous message
Grant W. Petty is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: A question about Gaussian distributions in IDL
Next Topic: Color in PLOT(S)??

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

Current Time: Wed Oct 08 19:04:02 PDT 2025

Total time taken to generate the page: 0.00220 seconds