Re: overlaying arrow plots [message #50998] |
Wed, 01 November 2006 21:49  |
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
|
|
|