release du matin, chagrin

This commit is contained in:
2020-09-29 10:41:53 +02:00
parent a5e7a2e6d5
commit e038d2feda
13 changed files with 802 additions and 15 deletions

51
chap/gnuplot.tex Normal file
View File

@@ -0,0 +1,51 @@
%
% nouveau 27 septembre 2020
%
\chapter{Gnuplot}
\index{Gnuplot}\label{chap:Gnuplot}
\section{Exemple : le phytotron}
\index{phytotron}
\begin{verbatim}
#!/bin/bash
# THIS IS A KLUDGE
nbsamp=3000 # nombre d'echantillon
if [ $# -eq 1 ]; then
nbsamp=$1
fi
DATAFILE="serial/foo.dat"
IMAGE="graphe.png"
TMPFILE="/dev/shm/tmpdata"
echo $nbsamp
wc -l ${DATAFILE}
tail -${nbsamp} < ${DATAFILE} > ${TMPFILE}
gnuplot << __EOC__
set term png size 1600,800
set output "${IMAGE}"
set ytics 2
set xtics
set grid front
set title "* Temperatures du Phytotron *"
set xdata time
set timefmt "%s"
set format x "%b %d\n%H:%M"
set yrange [ 10.0 : 40.0 ]
plot "${TMPFILE}" using 1:3 title " inside" with lines, \
"${TMPFILE}" using 1:4 title "ambient" with lines
__EOC__
display ${IMAGE} &
\end{verbatim}