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 #92132 is a reply to message #92129] Fri, 16 October 2015 08:56 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Yes, I found the TVEllipse document and I had a look on that one.
The problem is that I want to make an array with this ellipse and they way I did it I only got a black window when I display it. My code is shown below

xc=90. ;center in x-direction
yc=50. ;center in y-direction

theta=45. ;angle to rotate
s=sin(theta*!pi/180.)
c=cos(theta*!pi/180.)
dx=xc
dy=yc

for x=0L, NX-1 do begin
for y=0L, NY-1 do begin
if ((xc + c*dx+s*dy )/2.)^2 + (( yc - s*dx+c*dy )/4.)^2 LT 100 then begin
Ellipse[x,y] = 10.
endif
endfor
endfor
tvscl, Ellipse
[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:34:13 PDT 2025

Total time taken to generate the page: 0.29702 seconds