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 12:03:47 +0200 Organization: albasani.net Lines: 39 Message-ID: <4FDEFD03.9010109@gmx.eu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net t9gBBOh3Iayp0p/8DEmVacyEqaqhKki8/yaDmjCELqreJkt65F0qOM7nvXgUQ20yEDOT5rLCCgeGAV2C8dKEm/T0pZy4gw0gIDqstRI2KS3lCBA+TMQkPmHoZTsY/75P NNTP-Posting-Date: Mon, 18 Jun 2012 10:03:47 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="+XqLVCAlAKIEDZnZT8xsiTJq50PdAJqLw3jmpkSsfrJ5c85XlQf4HguBpHlyvnSzEC5fHdwF/7XNEHt6S1s6LRR3zsOQ+VKddXFum2f1rk/yIFF5TS7/p5d31SLR49/8"; 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: Cancel-Lock: sha1:sE+BnYYFcnxknyEQuR/GmTsVIqo= Xref: csiph.com comp.graphics.apps.gnuplot:1210 On 18/06/2012 08:32, haroon rashid wrote: > i am using gnuplot to draw graphs.i have two files for e.g > > file1.txt > x-cordinate y-cordinate > 1 45 30 > 2 45 51.2132 > 3 49.3932 53.356 > 4 76.0121 53.9978 > 5 49.0395 76.2526 > 6 56.1207 58.1305 > 7 39.3829 26.7781 > 8 5.10418 86.7296 > 9 34.5097 42.9899 > 10 73.0952 47.6005 > > file2.txt > > 1 47 30 > 2 32 45 > 3 49.3932 55.356 > 4 72.9839 54.2487 > 5 49.0395 76.2527 > 6 56.1207 59.1305 > 7 39.3828 26.7781 > 8 55.10417 86.7296 > 9 34.5097 45.9899 > 10 70.0952 47.6005 > when i draw both the files on same graph in gnuplot ,i got the results sucessfully. > Now i want to draw the arrow between the corresponding obtained points on the > graph. can anybody help me in this regard > thanks You could try and see if this does what you want: plot "<(paste file1.txt file2.txt)" using 2:3:($5-$2):($6-$3) with vectors Hermann