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 #88678 is a reply to message #88676] Fri, 30 May 2014 06:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[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:54:34 PDT 2025

Total time taken to generate the page: 0.00438 seconds