At the moment i am plotting my data in realtime. I plot the time on the x-axis and the data on the y-axis.
And i would like to upgrade my current plot to show the minutes[0:59] on the x-axis the and and the hours[0-23] on the y-axis.
I am currently saving the data of my Seismometer in a file that is build like this:
hour:minute:second data
14:44:36 +1580
14:44:36 -860
Here´s the current plot code:
set title "Seismometer"
set xdata time
set xlabel "Time"
set timefmt "%H:%M:%S"
set format x "%H:%M"
plot "file" using 1:2
pause 1
reread
I appreciate your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At the moment i am plotting my data in realtime. I plot the time on the
x-axis and the data on the y-axis.
And i would like to upgrade my current plot to show the minutes[0:59] on
the x-axis the and and the hours[0-23] on the y-axis.
I am currently saving the data of my Seismometer in a file that is build
like this:
hour:minute:second data
14:44:36 +1580
14:44:36 -860
Here´s the current plot code:
set title "Seismometer"
set xdata time
set xlabel "Time"
set timefmt "%H:%M:%S"
set format x "%H:%M"
im multiplying the data with a factor and then add the hour to it to plot everything on the right place
set title "Seismometer"
set xdata time
set ylabel "Hour"
set xlabel "Minute"
set yrange[0:24]
set timefmt "%M:%S"
set format x "%M:%S"
set ytics 1
set style data dots
plot "/bla" using ($2):($3/factor+$1)
pause 1
reread
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone,
I´d like to make a graph for my Seismometer.
At the moment i am plotting my data in realtime. I plot the time on the x-axis and the data on the y-axis.
And i would like to upgrade my current plot to show the minutes[0:59] on the x-axis the and and the hours[0-23] on the y-axis.
I am currently saving the data of my Seismometer in a file that is build like this:
hour:minute:second data
14:44:36 +1580
14:44:36 -860
Here´s the current plot code:
set title "Seismometer"
set xdata time
set xlabel "Time"
set timefmt "%H:%M:%S"
set format x "%H:%M"
plot "file" using 1:2
pause 1
reread
I appreciate your help.
In these cases I generally suggest to prepare the data with awk before
feeding the data to gnuplot.
I'd do something like this
plot "<awk -F[:\s] '{print $1 " " $2} file" u 1:2
awk gets the numbers you want and formats an easy dataset for gnuplot
Edo
On Mon, Apr 27, 2015 at 4:03 PM, Carnifix carnifix@users.sf.net wrote:
--
Edo
weblog http://edo.imanetti.net/wordpress
podcast http://sieegiueeaccaso.blogspot.com
cooking http://edo.imanetti.net/cucina
:wq
Thank you for you help.
My current data format looks like this
HH MM:SS data
im multiplying the data with a factor and then add the hour to it to plot everything on the right place
set title "Seismometer"
set xdata time
set ylabel "Hour"
set xlabel "Minute"
set yrange[0:24]
set timefmt "%M:%S"
set format x "%M:%S"
set ytics 1
set style data dots
plot "/bla" using ($2):($3/factor+$1)
pause 1
reread