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 #66307 is a reply to message #66297] Sun, 03 May 2009 18:21 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On May 1, 5:42 pm, ianpaul.free...@gmail.com wrote:
> Does anyone know a way to set the plotting symbol size in terms of
> data units?  In particular, I'd like to make the plotting symbol a
> circle with diameter 4.3 data units.  Then I'd like to do it both on-
> screen and output to postscript.

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
[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: Fri Oct 10 19:38:57 PDT 2025

Total time taken to generate the page: 0.80323 seconds