more gnuplotting

This commit is contained in:
2019-01-17 10:57:12 +01:00
parent 160b9fc49a
commit 63d71d99a7
5 changed files with 70 additions and 8 deletions

22
viz/gnuplot/plot-two.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
INFILE="../../serial/foo.dat"
NBLINES=50000
TMPFILE="/tmp/dd2data.$$"
IMAGE="av4v-h.png"
tail -${NBLINES} ${INFILE} | ./av4v-h.awk > ${TMPFILE}
gnuplot << __EOC__
set term png size 1280,420
set output "${IMAGE}"
set grid
set title "Hourly average on the last ${NBLINES} samples"
set xlabel "Heures"
set ylabel "Température"
set yrange [ 5.0 : 30.0]
plot "${TMPFILE}" with lines
__EOC__
cat -n ${TMPFILE} | tail -20