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

Home » Public Forums » archive » Re: plot a circle in 3d with anisotropic axes
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: plot a circle in 3d with anisotropic axes [message #48730] Sun, 14 May 2006 23:27
Klemens Barfus is currently offline  Klemens Barfus
Messages: 45
Registered: December 2002
Member
Thanks for your help, David !

Cheers,

Klemens


David Fanning wrote:
> Klemens Barfus writes:
>
>
>> I would like to plot a circle in a 3d plot [direct graphics], where the
>> axes are not isotropic. The circle should lie in the y plane. If I use
>> data coordinates I have to know the aspect ratio of z and y axis and
>> have to generate an ellipse ? In 2d I could use usersym where this
>> scaling is done automatically, but in 3d ?
>
>
> Use PLOTS with T3D keyword set.
>
>
>> How to get the ratio between the two axes ?
>
>
> ratio = (!Z.CRange[1] - !Z.CRange[0]) / (!X.CRange[1] - !X.CRange[0])
>
>
>> How to get the ellipse ?
>
>
> http://www.analyzemath.com/EllipseEq/EllipseEq.html
>
> See, for example TVELLIPSE or TVCIRCLE in the NASA Astronomy Library.
>
> Cheers,
>
> David
Re: plot a circle in 3d with anisotropic axes [message #48739 is a reply to message #48730] Fri, 12 May 2006 09:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Klemens Barfus writes:

> I would like to plot a circle in a 3d plot [direct graphics], where the
> axes are not isotropic. The circle should lie in the y plane. If I use
> data coordinates I have to know the aspect ratio of z and y axis and
> have to generate an ellipse ? In 2d I could use usersym where this
> scaling is done automatically, but in 3d ?

Use PLOTS with T3D keyword set.

> How to get the ratio between the two axes ?

ratio = (!Z.CRange[1] - !Z.CRange[0]) / (!X.CRange[1] - !X.CRange[0])

> How to get the ellipse ?

http://www.analyzemath.com/EllipseEq/EllipseEq.html

See, for example TVELLIPSE or TVCIRCLE in the NASA Astronomy Library.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: embedding fonts in eps files
Next Topic: RSI Announces Company Name Change

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

Current Time: Sun Oct 12 04:33:15 PDT 2025

Total time taken to generate the page: 1.35626 seconds