[Gnuplot-info] column operation with time data From: agoniabogar - 2009-01-06 09:48 ```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. ```
 Re: [Gnuplot-info] column operation with time data From: Thomas Sefzick - 2009-01-06 11:08 ```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. ```
 Re: [Gnuplot-info] column operation with time data From: agoniabogar - 2009-01-06 13:52 ```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. ```
 [Gnuplot-info] Time data format From: agoniabogar - 2012-04-27 14:14 ```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. ```
 Re: [Gnuplot-info] Time data format From: Hans-Bernhard Bröker - 2012-04-27 21:58 ```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. ```
 Re: [Gnuplot-info] Time data format From: Telmerk - 2012-04-30 20:57 ```Yes, many thanks, I realized it after a few attempts! It works fine. A. 2012/4/27 Hans-Bernhard Bröker : > 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. ```