Date:2012-05-30 18:06:20 (11 years 9 months ago)
Author:Werner Almesberger
Commit:70b01eb3d9cb6244336eebe492251eddf45f5f25
Message:ircstat/stat: move source file and filter to a variable

This makes it easier to change it to something else.
Files: ircstat/stat (1 diff)

Change Details

ircstat/stat
3030    done
3131done
3232
33src="<sed '\$d' _out"
34
3335gnuplot -persist <<EOF
3436set xtics ($t)
3537set grid xtics
3638set title "Traffic on the Qi-Hardware IRC channels"
3739set xlabel "Month"
3840set ylabel "Traffic (kbytes gzip'ed)"
39plot "<sed '\$d' _out" using (\$1/1000) with lines title "#qi-hardware" lw 2, \
40  "<sed '\$d' _out" using (\$2/1000) with lines title "#milkymist" lw 2, \
41  "<sed '\$d' _out" using :((\$1+\$2)/1000) with lines title "Both" lw 2
41plot "$src" using (\$1/1000) with lines title "#qi-hardware" lw 2, \
42  "$src" using (\$2/1000) with lines title "#milkymist" lw 2, \
43  "$src" using :((\$1+\$2)/1000) with lines title "Both" lw 2
4244set term png
4345set output "out.png"
4446replot

Archive Download the corresponding diff file

Branches:
master



interactive