apero du mercredi soir, bugs are coming

This commit is contained in:
phyto
2019-04-03 19:53:15 +02:00
parent 953650c953
commit e6f4bf7a0f
5 changed files with 29 additions and 8 deletions

10
plot.sh
View File

@@ -7,7 +7,7 @@ DATAFILE="serial/foo.dat"
IMAGE="graphe.png"
TMPFILE="/tmp/tmpdata"
tail -400 < ${DATAFILE} > ${TMPFILE}
tail -700 < ${DATAFILE} > ${TMPFILE}
gnuplot << __EOC__
set term png size 1000,700
@@ -15,13 +15,13 @@ set output "${IMAGE}"
set ytics 2
set xtics
set grid front
set title "* Temperatures *"
set title "* Temperatures du Phytotron *"
set xdata time
set timefmt "%s"
set format x "%d\n%H:%M"
set format x "%b %d\n%H:%M"
set yrange [ 0.0 : 30.0 ]
plot "${TMPFILE}" using 1:3 title "ambient" with lines, \
"${TMPFILE}" using 1:4 title " inside" with lines
plot "${TMPFILE}" using 1:3 title " inside" with lines, \
"${TMPFILE}" using 1:4 title "ambient" with lines
__EOC__
display ${IMAGE}