X-Git-Url: https://git.ao2.it/visomat-utils.git/blobdiff_plain/ec6cf524733f65ff40ac2e086e96e0dfd38e1dda..8d67f9a624e9097a7c99513dd0e73daf3b59ae8d:/contrib/visomat.gnuplot diff --git a/contrib/visomat.gnuplot b/contrib/visomat.gnuplot index 6ab72e6..0c6427c 100755 --- a/contrib/visomat.gnuplot +++ b/contrib/visomat.gnuplot @@ -1,12 +1,10 @@ #!/usr/bin/gnuplot -persist -# TODO: deal with time of the day -set timefmt "%d/%m/%Y" -set xdata time - set datafile separator ';' +set timefmt "%d/%m/%Y-%H.%M" +set xdata time plot \ - 'data.csv' using 1:3 every ::1 with lp title "systolic", \ - 'data.csv' using 1:4 every ::1 with lp title "diastolic" , \ - 'data.csv' using 1:5 every ::1 with lp title "pulses" + 'data.csv' using (stringcolumn(1).'-'.stringcolumn(2)):3 every ::1 with lp title "systolic", \ + 'data.csv' using (stringcolumn(1).'-'.stringcolumn(2)):4 every ::1 with lp title "diastolic", \ + 'data.csv' using (stringcolumn(1).'-'.stringcolumn(2)):5 every ::1 with lp title "pulses"