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

Home » Public Forums » archive » plot tangentail vector
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: plot tangentail vector [message #58192 is a reply to message #58078] Fri, 18 January 2008 21:58 Go to previous messageGo to previous message
nakisa is currently offline  nakisa
Messages: 24
Registered: June 2007
Junior Member
hi Jerome
thanks but it isn't what I need. i want at each position (x,y) it
suppose a circle and plot a tangential vector with given magnitude !!!
nakisa



On Jan 16, 4:44 pm, JMB <jmb.lo...@gmail.com> wrote:
> Does this short example help you?
>
> N = 200
> X = FINDGEN(N)
> Y = 10*SIN(x/16)-10*COS(x/8+2)
> A = abs(16*SIN(x[1:N-2]/4.))
>
> PLOT, X, Y
>
> vx=X[2:N-1]-X[1:N-2]
> vy=(Y[2:N-1]-Y[0:N-3])/2.
>
> Norm=A/sqrt(vx^2+vy^2)
>
> ARROW,X[1:N-2],Y[1:N-2],X[1:N-2]+Norm*vx,Y[1:N-2]+Norm*vy,/
> DATA,color=220
> PLOT, X, Y, /noerase
>
> END
>
> Regards,
>
> Jérôme
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: bizzare idlwave abbrev behavior
Next Topic: Color table

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

Current Time: Sun Oct 12 22:18:10 PDT 2025

Total time taken to generate the page: 0.84811 seconds