2007-12-03 10:34:34 +00:00
|
|
|
#
|
|
|
|
# Display a piri log with multiple units logging into the same file
|
|
|
|
# define pirilog FileLog /var/log/piri-%Y-%m-%d.log piri.*
|
|
|
|
# The devices are called piri.sz, piri.flo, piri.flu, prir.wz1 and piri.wz2
|
|
|
|
#
|
2008-05-09 13:58:10 +00:00
|
|
|
set terminal png transparent size 800,200 crop
|
2007-12-03 10:34:34 +00:00
|
|
|
set output '<OUT>.png'
|
|
|
|
set xdata time
|
|
|
|
set timefmt "%Y-%m-%d_%H:%M:%S"
|
|
|
|
set xlabel " "
|
2008-05-09 13:58:10 +00:00
|
|
|
set ylabel "Piri"
|
|
|
|
set y2label "Piri"
|
2007-12-03 10:34:34 +00:00
|
|
|
set title '<TL>'
|
2008-05-09 13:58:10 +00:00
|
|
|
set ytics ("Sz" 0.8, "FlO" 0.6, "FlU" 0.4, "Wz1" 0.2, "Wz2" 0.0)
|
|
|
|
set y2tics ("Sz" 0.8, "FlO" 0.6, "FlU" 0.4, "Wz1" 0.2, "Wz2" 0.0)
|
|
|
|
set yrange [-0.1:0.9]
|
2007-12-03 10:34:34 +00:00
|
|
|
|
|
|
|
plot\
|
2008-05-09 13:58:10 +00:00
|
|
|
"< awk '/sz/ {print $1, 0.8; }' <IN>" using 1:2 notitle with points,\
|
|
|
|
"< awk '/flo/{print $1, 0.6; }' <IN>" using 1:2 notitle with points,\
|
|
|
|
"< awk '/flu/{print $1, 0.4; }' <IN>" using 1:2 notitle with points,\
|
|
|
|
"< awk '/wz1/{print $1, 0.2; }' <IN>" using 1:2 notitle with points,\
|
|
|
|
"< awk '/wz2/{print $1, 0.0; }' <IN>" using 1:2 notitle with points
|