recent Debian has /var/run as symlink
[sysadmin-cookbook] / recepies / netpipe-tcp / gnuplot.sh
1 #!/bin/sh
2
3 echo "creating $1.png"
4
5 cat << __gnuplot__ | gnuplot
6 set term png
7 set output "$1.png"
8
9 set grid
10
11 set ylabel "Throughput In Mbps"
12 set xlabel "Message Size"
13
14 set size 1,0.8 
15
16 plot "$1" using 1:2 title "$1" with lines linewidth 3 
17 __gnuplot__