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

Home » Public Forums » archive » plotting filled circles of defined radius
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: plotting filled circles of defined radius [message #88676 is a reply to message #88675] Fri, 30 May 2014 06:42 Go to previous messageGo to previous message
Krishnakumar M.A is currently offline  Krishnakumar M.A
Messages: 19
Registered: March 2013
Junior Member
On Friday, May 30, 2014 4:40:23 PM UTC+5:30, David Grier wrote:
> On Friday, May 30, 2014 2:48:54 AM UTC-4, Krishnakumar M.A wrote:
>
>> Hi,
>
>>
>
>>
>
>>
>
>> I was able to plot circles of radius as given from a file in idl. Is it possible to make the circle shaded inside? I tried with /fill which did not work. Is there a work around to do this?
>
>>
>
>>
>
>>
>
>> Thanks,
>
>>
>
>> Krishnakumar
>
>
>
> Using function graphics, the following should do what you want:
>
>
>
> p = plot(/test, color='black', symbol='o', /sym_filled, sym_fill_color='light yellow',sym_size=1.5)
>
>
>
> All the best,
>
>
>
> David

Hi,

Thanks for your reply.

Its not working for my data.
The below is a script I wrote, to plot the circles. Please let me know if anything can be done on that? Sorry I didnt post it before.

openr,1,'test_idl.dat'
data1=fltarr(3,218)

readf,1,data1
lo=reform(data1[0,*])
bo=reform(data1[1,*])
dm=reform(data1[2,*])

plot, [0,1], [0,1], /nodata,xrange=[0,360],yrange=[-35,30], xticklen=1,yticklen=1,xgridstyle=1,ygridstyle=1, background=0,xstyle=9

for i=0,217 do begin

n=49.0
theta=findgen(n)/(n-1.0)*2*!pi

xo=lo(i)+ro(i)*sin(theta)/110
yo=bo(i)+ro(i)*cos(theta)/120

oplot,xo,yo,linestyle=0,color=0

endfor
close,1
end


Thanks,
Krishnakumar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Create an XML file in IDL
Next Topic: shp file to ENVI classification file type

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

Current Time: Wed Oct 08 13:37:58 PDT 2025

Total time taken to generate the page: 0.00432 seconds