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


Groups > comp.graphics.apps.gnuplot > #2075 > unrolled thread

variable addition in GNU plot

Started byFarrukh <mir.kiel@gmail.com>
First post2011-02-08 10:13 -0800
Last post2011-02-09 02:11 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  variable addition in GNU plot Farrukh <mir.kiel@gmail.com> - 2011-02-08 10:13 -0800
    Re: variable addition in GNU plot Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-02-09 02:11 +0100

#2075 — variable addition in GNU plot

FromFarrukh <mir.kiel@gmail.com>
Date2011-02-08 10:13 -0800
Subjectvariable addition in GNU plot
Message-ID<5fcacdbd-ef09-4abd-ac9e-c9351c2f7419@v31g2000vbs.googlegroups.com>
Hello,
During simulation i got two files of "time vs throughput", i want to
add throughput from these files and to display it on time axis
accordingly. For example:
File #1
time   thro
0        0.91
0.1     1.25
0.2     0.88
....
File #2
0        1.10
0.1     1.25
0.2     0.98
....
Please help me how to add the thro from two files in gnuplot.
Regards,
Farrukh

[toc] | [next] | [standalone]


#2090

FromHans-Bernhard Bröker <HBBroeker@t-online.de>
Date2011-02-09 02:11 +0100
Message-ID<iispkh$kmb$02$1@news.t-online.com>
In reply to#2075
On 08.02.2011 19:13, Farrukh wrote:

> During simulation i got two files of "time vs throughput", i want to
> add throughput from these files and to display it on time axis
> accordingly.

That's not really gnuplot's job.  gnuplot is plotting program, not a 
data manipulation tool.  What you need is a text file utility.  The 
simplest one for the job is the Unix tool "paste", which you can even 
use from inside gnuplot:

	plot "<paste file1 file2" using 1:($2+$4)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web