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

Home » Public Forums » archive » circles
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
circles [message #9519] Wed, 09 July 1997 00:00 Go to previous message
lady of the elves is currently offline  lady of the elves
Messages: 4
Registered: July 1997
Junior Member
[incidentally, I'm new to this language :)]

I'm trying to create a two-dimensional array, such that tvscl of the
array will show a filled circle. So far, my best idea has not
worked--but here it is:

x and y are one-D arrays of 200 elements such that plot,x,y produces a
circular shape, but not filled.

for round1=0,199 do begin
for round2=0,199 do begin
if (y(round1) eq y(round2)) then begin
circle(y(round1),x(round1):x(round2))=2
endif
endfor
endfor

A circle is composed of boundary points such that: for each x, there are
two y's and for each y, there are two x's--right? If I fill between the
y's, I should have a circle....right?

I would really like to have a circularly-filled array; if anyone has
better knowledge, please let me know :)
Thanks.
-gzb
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: 9 Volt - The greatest electronic band ever!! - http://www.smart.net/~kkvech/index.html
Next Topic: fltarr(1,1,1,1,1,1,1,2) quirk, IDL 4

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

Current Time: Sat Oct 11 07:56:28 PDT 2025

Total time taken to generate the page: 0.15968 seconds