|
From: agoniabogar <te...@gm...> - 2009-01-06 09:48:36
|
Dear Plotters, I hope you can help me, I have two diagrams that I would like to match and generate the average of both the time and the value data. ... plot "blabla.dat" u ($2+$4)/2:($6+$8)/2 ... This would be the simplest method to plot the average values both in the x and y axis. But I have elapsed time in the x axis and it seems that the program does not want to execute the simple column operation in the command (regarding the time, $2 and $4 columns). The output says " empty xrange. . ." I used the set timefmt "%H:%M:%S" and the set xdata time commands prior to the plot. Many thanks in advance, Agoniabogar -- View this message in context: http://www.nabble.com/column-operation-with-time-data-tp21307475p21307475.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-01-06 11:08:43
|
columns with time data need a special read-in function when the dates are to be modified: plot "blabla.dat" u (timecolumn(2)+timecolumn(4))/2:($6+$8)/2 agoniabogar wrote: > > Dear Plotters, > > I hope you can help me, I have two diagrams that I would like to match and > generate the average of both the time and the value data. > ... > plot "blabla.dat" u ($2+$4)/2:($6+$8)/2 > ... > This would be the simplest method to plot the average values both in the x > and y axis. But I have elapsed time in the x axis and it seems that the > program does not want to execute the simple column operation in the > command (regarding the time, $2 and $4 columns). The output says " empty > xrange. . ." > I used the set timefmt "%H:%M:%S" and the set xdata time commands prior > to the plot. > > Many thanks in advance, > > Agoniabogar > > > -- View this message in context: http://www.nabble.com/column-operation-with-time-data-tp21307475p21308540.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: agoniabogar <te...@gm...> - 2009-01-06 13:52:45
|
Dear Thomas, many thanks, now it plots it in cold blood. :) Agonia Thomas Sefzick wrote: > > plot "blabla.dat" u (timecolumn(2)+timecolumn(4))/2:($6+$8)/2 > -- View this message in context: http://www.nabble.com/column-operation-with-time-data-tp21307475p21310739.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: agoniabogar <te...@gm...> - 2012-04-27 14:14:41
|
Hi all, I've run into the following data file: 20.04.2012 15:27 27 25 24.2 0.32 20.04.2012 15:27 27 25 24.2 0.3 20.04.2012 15:28 27 25 24.2 0.28 20.04.2012 15:28 27 25 24.2 0.26 20.04.2012 15:28 27 25 24.2 0.24 20.04.2012 15:28 27 25 24.2 0.22 . . . ...and I would like to plot it, by: set xdata time set timefmt x "%d.%m.%Y %H:%M" p "blabla.txt" u 1:2 and it plots sg, but not the expected result. I don't know what can be the problem. Many thanks, Agonia agoniabogar wrote: > > > Dear Thomas, many thanks, now it plots it in cold blood. :) > > Agonia > > > Thomas Sefzick wrote: >> >> plot "blabla.dat" u (timecolumn(2)+timecolumn(4))/2:($6+$8)/2 >> > > -- View this message in context: http://old.nabble.com/column-operation-with-time-data-tp21307475p33759325.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-04-27 21:58:39
|
On 27.04.2012 16:14, agoniabogar wrote: > 20.04.2012 15:28 27 25 24.2 0.22 > set xdata time > set timefmt x "%d.%m.%Y %H:%M" > p "blabla.txt" u 1:2 You almost certainly don't want to use column 2 in that specification --- that's the one holding the time, because you have a blank in your timefmt. You want plot "blabla.txt" u 1:3 instead. |
|
From: Telmerk <te...@gm...> - 2012-04-30 20:57:10
|
Yes, many thanks, I realized it after a few attempts! It works fine. A. 2012/4/27 Hans-Bernhard Bröker <HBB...@t-...>: > On 27.04.2012 16:14, agoniabogar wrote: >> >> 20.04.2012 15:28 27 25 24.2 0.22 > > >> set xdata time >> set timefmt x "%d.%m.%Y %H:%M" >> p "blabla.txt" u 1:2 > > > You almost certainly don't want to use column 2 in that specification --- > that's the one holding the time, because you have a blank in your timefmt. > You want > > plot "blabla.txt" u 1:3 > > instead. |