X-Git-Url: https://git.ao2.it/visomat-utils.git/blobdiff_plain/ec6cf524733f65ff40ac2e086e96e0dfd38e1dda..1b45f3e735f5a8b0423640e11622233a6c03de01:/contrib/visomat.gnuplot?ds=sidebyside diff --git a/contrib/visomat.gnuplot b/contrib/visomat.gnuplot index 6ab72e6..c2e9b36 100755 --- a/contrib/visomat.gnuplot +++ b/contrib/visomat.gnuplot @@ -1,12 +1,23 @@ #!/usr/bin/gnuplot -persist -# TODO: deal with time of the day -set timefmt "%d/%m/%Y" +set datafile separator ';' +set timefmt "%d/%m/%Y-%H.%M" set xdata time +set format x "%d/%m/%Y\n%H.%M" +set xtics out nomirror rotate by -45 -set datafile separator ';' +set multiplot layout 2,1 +set title "User 1" 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' i 0 using (stringcolumn(1).'-'.stringcolumn(2)):3 every ::1 with lp title "systolic", \ + 'data.csv' i 0 using (stringcolumn(1).'-'.stringcolumn(2)):4 every ::1 with lp title "diastolic", \ + 'data.csv' i 0 using (stringcolumn(1).'-'.stringcolumn(2)):5 every ::1 with lp title "pulses" + +set title "User 2" +plot \ + 'data.csv' i 1 using (stringcolumn(1).'-'.stringcolumn(2)):3 every ::1 with lp title "systolic", \ + 'data.csv' i 1 using (stringcolumn(1).'-'.stringcolumn(2)):4 every ::1 with lp title "diastolic", \ + 'data.csv' i 1 using (stringcolumn(1).'-'.stringcolumn(2)):5 every ::1 with lp title "pulses" + +unset multiplot