Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Commit Details
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 | ||
---|---|---|
30 | 30 | done |
31 | 31 | done |
32 | 32 | |
33 | src="<sed '\$d' _out" | |
34 | ||
33 | 35 | gnuplot -persist <<EOF |
34 | 36 | set xtics ($t) |
35 | 37 | set grid xtics |
36 | 38 | set title "Traffic on the Qi-Hardware IRC channels" |
37 | 39 | set xlabel "Month" |
38 | 40 | set ylabel "Traffic (kbytes gzip'ed)" |
39 | plot "<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 | |
41 | plot "$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 | |
42 | 44 | set term png |
43 | 45 | set output "out.png" |
44 | 46 | replot |
Branches:
master