temporary plot script
This commit is contained in:
parent
cff07de4af
commit
c9e78aa11a
29
plot.sh
Executable file
29
plot.sh
Executable 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…
Reference in New Issue
Block a user