temporary plot script

Bu işleme şunda yer alıyor:
phyto 2019-04-03 18:36:27 +02:00
ebeveyn cff07de4af
işleme c9e78aa11a
1 değiştirilmiş dosya ile 29 ekleme ve 0 silme

29
plot.sh Çalıştırılabilir dosya
Dosyayı Görüntüle

@ -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}