Browse Source

temporary plot script

master
phyto 3 years ago
parent
commit
c9e78aa11a
1 changed files with 29 additions and 0 deletions
  1. +29
    -0
      plot.sh

+ 29
- 0
plot.sh View File

@ -0,0 +1,29 @@
#!/bin/bash
# THIS IS A KLUDGE
DATAFILE="serial/foo.dat"
IMAGE="graphe.png"
TMPFILE="/tmp/tmpdata"
tail -400 < ${DATAFILE} > ${TMPFILE}
gnuplot << __EOC__
set term png size 1000,700
set output "${IMAGE}"
set ytics 2
set xtics
set grid front
set title "* Temperatures *"
set xdata time
set timefmt "%s"
set format x "%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
__EOC__
display ${IMAGE}

Loading…
Cancel
Save