projects
/
visomat-utils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
91d0c41
)
Handle time of day in the gnuplot script
author
Antonio Ospite <ospite@studenti.unina.it>
Wed, 13 Mar 2013 14:27:22 +0000
(15:27 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Wed, 13 Mar 2013 14:27:22 +0000
(15:27 +0100)
contrib/visomat.gnuplot
patch
|
blob
|
history
diff --git
a/contrib/visomat.gnuplot
b/contrib/visomat.gnuplot
index
6ab72e6
..
0c6427c
100755
(executable)
--- a/
contrib/visomat.gnuplot
+++ b/
contrib/visomat.gnuplot
@@
-1,12
+1,10
@@
#!/usr/bin/gnuplot -persist
#!/usr/bin/gnuplot -persist
-# TODO: deal with time of the day
-set timefmt "%d/%m/%Y"
-set xdata time
-
set datafile separator ';'
set datafile separator ';'
+set timefmt "%d/%m/%Y-%H.%M"
+set xdata time
plot \
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"