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 
Return to the default flat view Create a new topic Submit Reply
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/
[Message index]
 
Read Message
Read Message
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: Sat Oct 11 14:19:35 PDT 2025

Total time taken to generate the page: 0.40452 seconds