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

Home » Public Forums » archive » Re: 3D plot with correct aspect ratio
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: 3D plot with correct aspect ratio [message #32284] Fri, 27 September 2002 01:13
Kristian Kjaer is currently offline  Kristian Kjaer
Messages: 58
Registered: June 1998
Member
Thanks for the comments.
In this case I don't mind that the z axis will always be vertical.
What I do want is that, for the chosen viewing angle (ax,az), the
postscript will be (apart from a - preferably known - scale factor) a
correct projection parallel to the line (ax,az) on a plane orthogonal to
the line (ax,az). Maybe I have to work out the transformation
(projection) myself, and use IDL 2D DG to plot it ...
- Kristian

David Fanning wrote:
> Well, almost everything except rotate freely in 3D space.
> But, if you can live with that... :-)


> RichardW (rmw092001@yahoo.com) writes:
>> However, for making good 3D postscript plots on paper - no animations,
>> widgets, interactivity wanted - direct graphics will do almost
>> everything...

Kristian Kjær wrote:
> I set up a 3D coordinate system and a projection with
>
> range=[-7.,7] & az=40 & ax=35 ;, say
> surface,dist(4),/nodata,/save,xran=range,yran=range,zran=ran ge,$
> ax=ax, az=az, $
> xstyle=1+4,ystyle=1+4,zstyle=1+4
>
> and then I plot in it with plotS.
> The x, y and z axes are equivalent and in the same units,
> (say, meters) so I want the resulting postscript to be a
> true projection (with a known scale factor) of this 3D field.
> How do I achieve that?
>
> Thanks for any pointers,
> Kristian Kjær, Risø National Laboratory, Denmark
Re: 3D plot with correct aspect ratio [message #32288 is a reply to message #32284] Thu, 26 September 2002 19:21 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
RichardW (rmw092001@yahoo.com) writes:

> However, for making good 3D postscript plots on paper - no animations,
> widgets, interactivity wanted - direct graphics will do almost
> everything...

Well, almost everything except rotate freely in 3D space.
But, if you can live with that... :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: 3D plot with correct aspect ratio [message #32289 is a reply to message #32288] Thu, 26 September 2002 18:55 Go to previous message
rmw092001 is currently offline  rmw092001
Messages: 17
Registered: January 2002
Junior Member
David Fanning <david@dfanning.com> wrote in message news:<MPG.17fcda6be56e20b99899c6@news.frii.com>...
> Kristian =?iso-8859-1?Q?Kj=E6r?= (Kristian.Kjaer@Risoe.DK) writes:
>
>> I set up a 3D coordinate system and a projection with
>>
>>
>> range=3D[-7.,7] & az=3D40 & ax=3D35 ;, say
>> surface,dist(4),/nodata,/save,xran=3Drange,yran=3Drange,zran =3Drange,$
>> ax=3Dax, az=3Daz, $
>> xstyle=3D1+4,ystyle=3D1+4,zstyle=3D1+4
>>
>>
>> and then I plot in it with plotS.
>> The x, y and z axes are equivalent and in the same units, =
>>
>> (say, meters) so I want the resulting postscript to be a =
>>
>> true projection (with a known scale factor) of this 3D field.
>> How do I achieve that?
>
> I don't know the answer to this, exactly, without doing
> some research, but I *do* know the answer is NOT to
> pursue this any further with direct graphics. Direct
> graphics uses as 2.5D graphic representation (you notice
> the Z axis is always vertical no matter what rotations you
> do). I think the only way to make this happen is to use
> a true 3D graphics system, which in IDL exists only in
> the object graphics system.
>
> Cheers,
>
> David

3D postscript plots aren't really quantitative - you can't measure
stuff at some "depth" in the plot, like you can measure stuff on a 2D
plot. I'd just use trial and error, adjusting POSITION, RANGE values
to stretch axes until the 3D postscript looks "in proportion". IDL
takes care of plotting correctly in whatever 3D axis system you
choose.

Object graphics is great for true 3D, interactive, animated visuals
(see the examples in IDL demos), and it usually gets recommended by
the best programmers in the group :-) It's also a selling point of IDL
over PV-WAVE.

However, for making good 3D postscript plots on paper - no animations,
widgets, interactivity wanted - direct graphics will do almost
everything...

RW
Re: 3D plot with correct aspect ratio [message #32296 is a reply to message #32289] Thu, 26 September 2002 08:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kristian =?iso-8859-1?Q?Kj=E6r?= (Kristian.Kjaer@Risoe.DK) writes:

> I set up a 3D coordinate system and a projection with
>
>
> range=3D[-7.,7] & az=3D40 & ax=3D35 ;, say
> surface,dist(4),/nodata,/save,xran=3Drange,yran=3Drange,zran =3Drange,$
> ax=3Dax, az=3Daz, $
> xstyle=3D1+4,ystyle=3D1+4,zstyle=3D1+4
>
>
> and then I plot in it with plotS.
> The x, y and z axes are equivalent and in the same units, =
>
> (say, meters) so I want the resulting postscript to be a =
>
> true projection (with a known scale factor) of this 3D field.
> How do I achieve that?

I don't know the answer to this, exactly, without doing
some research, but I *do* know the answer is NOT to
pursue this any further with direct graphics. Direct
graphics uses as 2.5D graphic representation (you notice
the Z axis is always vertical no matter what rotations you
do). I think the only way to make this happen is to use
a true 3D graphics system, which in IDL exists only in
the object graphics system.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: volume rendering in IDLgrVolume
Next Topic: Namespaces (redux)

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

Current Time: Wed Oct 08 17:52:30 PDT 2025

Total time taken to generate the page: 0.00250 seconds