DD2-monitor/viz/gnuplot/plot-one.sh

23 lines
423 B
Bash
Raw Normal View History

#!/bin/bash
INFILE="../../serial/foo.dat"
2019-01-17 10:57:12 +01:00
NBLINES=1600
TMPFILE="/tmp/dd2data.$$"
2019-01-17 10:57:12 +01:00
IMAGE="av4v-m.png"
tail -${NBLINES} ${INFILE} | ./average4v.awk > ${TMPFILE}
gnuplot << __EOC__
2019-01-17 10:57:12 +01:00
set term png size 1280,420
set output "${IMAGE}"
set grid
2019-01-17 10:57:12 +01:00
set title "Average on the last ${NBLINES} samples"
set xlabel "Minutes"
set ylabel "Température"
set yrange [ 5.0 : 30.0]
plot "${TMPFILE}" with lines
__EOC__
2019-01-17 10:57:12 +01:00
tail -20 ${TMPFILE}