diff --git a/plot.sh b/plot.sh index 86b53cc..1770063 100755 --- a/plot.sh +++ b/plot.sh @@ -15,7 +15,7 @@ TMPFILE="/dev/shm/tmpdata" echo $nbsamp wc -l ${DATAFILE} -tail -3000 < ${DATAFILE} > ${TMPFILE} +tail -${nbsamp} < ${DATAFILE} > ${TMPFILE} gnuplot << __EOC__ set term png size 1600,800 @@ -27,7 +27,7 @@ set title "* Temperatures du Phytotron *" set xdata time set timefmt "%s" set format x "%b %d\n%H:%M" -set yrange [ 0.0 : 30.0 ] +set yrange [ 0.0 : 40.0 ] plot "${TMPFILE}" using 1:3 title " inside" with lines, \ "${TMPFILE}" using 1:4 title "ambient" with lines __EOC__