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

Home » Public Forums » archive » Re: Aspect ratio(s) in iTools
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
Re: Aspect ratio(s) in iTools [message #51155] Wed, 08 November 2006 13:59
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ken Bowman writes:

> I am trying to figure out how to control 3-D aspect ratio(s) in an iTool.

Oh, never mind. You said, "In iTools." I've got to go take a nap.
I didn't finish that story until 3:30 AM last night, then
I was too wound up to go to bed. I'm not even reading the
posts right now. Sorry.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Aspect ratio(s) in iTools [message #51156 is a reply to message #51155] Wed, 08 November 2006 13:55 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth Bowman writes:

> I am trying to figure out how to control 3-D aspect ratio(s) in an iTool.
>
> If I plot a 10 x 20 array
>
> IDL> isurface, randomu(seed, 10, 20), findgen(10), findgen(20)
>
> by default the resulting plot is square, even though the x-dimension
> is half as long as the y-dimension.
>
> If I set the data space scaling to Anisotropic, I can stretch or shrink the
> z-dimension with the "Anisotropic 3D scale" parameter, but I cannot
> adjust the x-y aspect ratio. That only works for 2-D plots (iPlot, ...).
>
> With a 3-D plot, how do I control the three dimensions independently?

You could have a look at FSC_SURFACE to see how this is done.
It maintains the aspect ratio of the X and Y data. It is
straightforward to apply this to the Z direction, I think.

IDL> FSC_Surface, dist(30, 10)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Aspect ratio(s) in iTools
Next Topic: Analyst and PV-WAVE

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

Current Time: Wed Oct 08 15:23:13 PDT 2025

Total time taken to generate the page: 0.00443 seconds