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

Home » Public Forums » archive » Create curves
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: Create curves [message #92127 is a reply to message #92124] Fri, 16 October 2015 06:56 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
g.nacarts@gmail.com writes:

> I created an ellipsoid shape as follows
>
> NX=128
> NY=128
> Ellipxe = fltarr(NX,NY)
>
> for i=0L, NX-1 do begin
> for j=0L, NY-1 do begin
> if (0.1*(j-50)^2.+0.23*(i-95)^2. LT 100) then begin
> Ellipse[i,j] = 10.
> endif
> endfor
> endfor
> tvscl, Ellipse
>
>
> I wanted to change the direction of the ellipse to be diagonal (i.e. not plotted vertically). Does anyone knows how to do that?

I think I would use TVEllipse from the NASA Astronomy Library with the
angle parameter set to 45 degrees.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting symbols filled with pattern(s)
Next Topic: Read ENVI file

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

Current Time: Wed Oct 08 17:56:08 PDT 2025

Total time taken to generate the page: 0.00413 seconds