Re: Aspect ratio(s) in iTools [message #51155] |
Wed, 08 November 2006 13:59 |
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  |
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.")
|
|
|