From: cmartin <creepy_chris@ho...>  20080509 18:33:13

Hi, I'm trying to find a way to add two data sets(contained in different files) together and plot the result. Is there any easy way of doing this. For example, is there any way of creating a function, say f(x), which contains your data set? If that is possible, then I could just read my data files into two functions, f(x) and g(x), and then plot f(x)+g(x) Thanks for any help Chris  View this message in context: http://www.nabble.com/Addingmultipledatasetstogethertp17154106p17154106.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 
From: cmartin <creepy_chris@ho...>  20080509 18:49:42

Julien Derr wrote: > > I guess the easy way of doing it is to paste the two files in one, and > then plot normally....with $1+$2 > The problem with this method is that my files are quite large and I have a few thousand of them(I have a C program which does this analysis for me, but I need to double check the results for some of them), so to add another column to my output would nearly double my program's running time(which is already at more than an hour, and already dominated by readwrite time)  View this message in context: http://www.nabble.com/Addingmultipledatasetstogethertp17154106p17154388.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 
From: Tatsuro MATSUOKA <tmacchant3@ya...>  20080510 11:02:12

Hello  cmartin <creepy_chris@...> wrote: > The problem with this method is that my files are quite large and I have a > few thousand of them(I have a C program which does this analysis for me, but > I need to double check the results for some of them), so to add another > column to my output would nearly double my program's running time(which is > already at more than an hour, and already dominated by readwrite time) >  > View this message in context: > http://www.nabble.com/Addingmultipledatasetstogethertp17154106p17154388.html > Sent from the Gnuplot  User mailing list archive at Nabble.com. If your data so large, it is better to use binary data. Please see: help binary general Regards Tatsuro  GANBARE! NIPPON! Win your ticket to Olympic Games 2008. http://pr.mail.yahoo.co.jp/ganbarenippon/ 
From: Dieter Jurzitza <dieter.jurzitza@t...>  20080509 22:30:06

Hi Chris, you could probably do a little awk magic and pipe the resulting data into gnuplot. You would have to open both files in awk (in perl ...), add the two values and pipe the result into gnuplot, where you'd plot them. If your files are that large as you describe it might be impossible to hold both the data sets in ram at once (more than 1 hour of writing into a file from a Cprogram ought to be quite a bit of data ....) Hope this helps, take care Dieter    \ /\_/\   ~x~ /\ / \ / \_/ ^^__ _ / _ ____ / <°°__ \ \_/  /     _ _ _ _ if you really want to see the pictures above  use some font with constant spacing like courier! :) Am Freitag, 9. Mai 2008 20:33:19 schrieb cmartin: > Hi, > I'm trying to find a way to add two data sets(contained in different files) > together and plot the result. Is there any easy way of doing this. For > example, is there any way of creating a function, say f(x), which contains > your data set? If that is possible, then I could just read my data files > into two functions, f(x) and g(x), and then plot f(x)+g(x) > > Thanks for any help > Chris 