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

Home » Public Forums » archive » Re: symsize in data units
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: symsize in data units [message #66297 is a reply to message #66292] Mon, 04 May 2009 14:31 Go to previous messageGo to previous message
pyoachim is currently offline  pyoachim
Messages: 2
Registered: January 2009
Junior Member
> I think it's impossible to do with PSYM or SYMSIZE.
>
> On the other hand, it's simple enough to write a small procedure that
> OPLOT's what you want, in the units you want.  For example, a circle
> could be done like this,
>
> pro plot_circle, xcent, ycent, symsize=radius, _EXTRA=extra
>   th = 2*!dpi/100*dindgen(101)
>   if n_elements(radius) EQ 0 then r = 1 else r = radius(0)
>   x = r*cos(th) & y = r*sin(th)
>   for i = 0, n_elements(xcent)-1 do $
>     oplot, xcent(i)+x, ycent(i)+y, _EXTRA=extra
> end
>
> Then you can call PLOT_CIRCLE, x, y, symsize=4.5

Thanks Craig, that works great. I replaced your oplot with a polyfill
so I could get solid points. I was also surprised that I can get this
to make smaller postscript files than using the plotsym procedure. I
thought for sure your routine would make giant output.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL Workspace error won't go away
Next Topic: newbie question on array manipulation

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

Current Time: Sat Oct 11 13:24:42 PDT 2025

Total time taken to generate the page: 0.56270 seconds