Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Hermann Peifer Newsgroups: comp.graphics.apps.gnuplot Subject: Re: how to draw arrow between correspoing points in gnuplot Date: Mon, 18 Jun 2012 13:58:44 +0200 Organization: albasani.net Lines: 11 Message-ID: <4FDF17F4.3030906@gmx.eu> References: <4FDEFD03.9010109@gmx.eu> <0f0590f3-176b-4dee-a082-08e98f3c714b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net SuenCVSCHC0AnlSTUfJPs0mg1yai4lB32stuP6brtcxBi+TIFs7hkG1s6hWHNbQdGchiAshGuYBri8HsBKxfLXTFPnGsIMp1U0id0f7hPZmKY5jJxDypB6kpavcMa5RY NNTP-Posting-Date: Mon, 18 Jun 2012 11:58:44 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="mGOIhjZgZmgz1lV5UQOH78C/wZ0D07fiy0fk3pxPyNR8TJ36hS+i9IQN9M94ybKGb1JeznbzRIIrvmv644rSIXiEkHg276UT+VMLReN6dGoEZ4ZGjwZbIYFBRFErK7JR"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 To: haroon rashid In-Reply-To: <0f0590f3-176b-4dee-a082-08e98f3c714b@googlegroups.com> Cancel-Lock: sha1:a+sbE262Eu9bCfc/+CwmbVQmLZ4= Xref: csiph.com comp.graphics.apps.gnuplot:1212 On 18/06/2012 13:21, haroon rashid wrote: > thanks Hermann Peifer for you help, i got the results accordingly,but i did not understand what ($5-$2):($6-$3) signify please explain I assumed that your file1.txt has x1 and y1 of the vectors and file2.txt has x2 and y2. The Gnuplot manual (see page 56 of [1]) explains: "The 2D vectors style draws a vector from (x,y) to (x+xdelta,y+ydelta)." So one has to calculate the deltas first. Hermann [1] http://gnuplot.info/docs_4.6/gnuplot.pdf