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 #88680 is a reply to message #88678] Sat, 31 May 2014 08:45 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 7:27:24 PM UTC+5:30, David Fanning wrote:
> Krishnakumar M.A writes:
>
>
>
>> 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?
>
>
>
> If you just want filled circles of different radii, you can do something
>
> like this:
>
>
>
> data = Randomu(-3L, 50) * 10
>
> x = 0.5 > (Randomu(seed, 50) * 10) < 9.5
>
> y = 0.5 > (Randomu(seed, 50) * 10) < 9.5
>
> radius = cgScaleVector(data, 1.0, 4.0)
>
> colors = Bytscl(data)
>
> cgPlot, x, y, /Nodata
>
> cgLoadCT, 33
>
> FOR j=0,N_Elements(data)-1 DO BEGIN
>
> cgOplot, x[j], y[j], SYMSIZE=radius[j], PSYM=16, COLOR=colors[j]
>
> ENDFOR
>
> END
>
>
>
> 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.")

Thanks a lot David. That worked like charm for me.

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 15:50:19 PDT 2025

Total time taken to generate the page: 0.06789 seconds