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
Re: bug in 'axis'? [message #44633 is a reply to message #44552] Wed, 29 June 2005 23:16 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Grant W. Petty wrote:
>
> 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?

I don't know why this doesn't work, but clearly something
is not being set up that should be. I would replace your
SCALE3 command with this:

SURFACE, DIST(5), /NODATA, /SAVE, XRANGE=[0,63], $
YRANGE=[0,63], ZRANGE=[0,depth], XSTYLE=1, $
YSTYLE=1, ZSTYLE=1, CHARSIZE=1.5

Now you will have a 3D coordinate space and your AXIS command
will work appropriately.

Cheers,

David
[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: Fri Oct 10 20:27:18 PDT 2025

Total time taken to generate the page: 0.39850 seconds