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

Home » Public Forums » archive » Re: overlaying arrow plots
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: overlaying arrow plots [message #50998] Wed, 01 November 2006 21:49 Go to previous message
rkombiyil is currently offline  rkombiyil
Messages: 59
Registered: March 2006
Member
Hi Wayne,

Thanks for your time and help! Yes, I could overlay them arrows without
any problems now. I chose one_arrow because it accepts angles as input
(Maybe I could do the same with ARROW also, I haven't checked the
code/syntax yet.). My angles are time dependent.

Hmm, at first glance it seems like them arrows are inverted?? For
example, my min(angle) is 36.3610 and max(angle) is 124.032. So these
should be plotted pointing in the north-east and north-west
respectively?? I mean, aren't the angles counterclockwise from +x? The
directions were fine earlier. I didn't read your modifications yet. But
now directions seem off.
FYI,

After I do:
--
plot,time,tseries
--
I make a call to one_arrow via:
--
for i=0,n_elements(tseries)-1 do $
one_arrow,time(i),zeroarray(i),angle[i],'',arrowsize=[(angle [i]/maxangle),9.0,35.0],charsize=0.1,thick=1.
--
Thanks for the modifications and the help!
Cheers,
/rk

Wayne Landsman wrote:
> metachronist wrote:
>> Dear All,
>>
>> I started using IDL more only recently. So please be kind :-) I have
>> made arrow plots from a 1D timeseries using one_arrow, which in turn
>> calls one_ray. I want to be able to overlay these vector plots on maps
>> and regular x-y plots of the timeseries/other derived quantities.
>
>
> one_arrow and one_ray are old routines from the IDL Astronomy Library
> and are not part of the standard IDL distribution. They only
> accepted device coordinates, so you had to be careful to convert both
> the arrow position and length to device coordinates. If you just
> want to draw an arrow without annotation, then you might have better
> luck with the standard IDL routine ARROW, which accepts /DATA and
> /NORMAL keywords.
>
> I have now updated one_arrow.pro so that it accepts both /DATA and
> /NORMAL keywords (at http://idlastro.gsfc.nasa.gov/ftp/pro/misc/)
>
> --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDLffDICOMEx and dicomdir
Next Topic: Problem displaying images on 8 bit monitor

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

Current Time: Wed Oct 08 19:42:37 PDT 2025

Total time taken to generate the page: 0.00402 seconds