Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1210

Re: how to draw arrow between correspoing points in gnuplot

From Hermann Peifer <peifer@gmx.eu>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: how to draw arrow between correspoing points in gnuplot
Date 2012-06-18 12:03 +0200
Organization albasani.net
Message-ID <4FDEFD03.9010109@gmx.eu> (permalink)
References <d2719a1b-0ca4-4f0c-bfa9-66c74a9b2707@googlegroups.com>

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

how to draw arrow between correspoing points in gnuplot haroon rashid <haroon.it@gmail.com> - 2012-06-17 23:32 -0700
  Re: how to draw arrow between correspoing points in gnuplot Hermann Peifer <peifer@gmx.eu> - 2012-06-18 12:03 +0200
    Re: how to draw arrow between correspoing points in gnuplot haroon rashid <haroon.it@gmail.com> - 2012-06-18 04:21 -0700
      Re: how to draw arrow between correspoing points in gnuplot Hermann Peifer <peifer@gmx.eu> - 2012-06-18 13:58 +0200
        Re: how to draw arrow between correspoing points in gnuplot haroon rashid <haroon.it@gmail.com> - 2012-06-18 06:55 -0700

csiph-web