Added documentation
[ana-net.git] / opt / gnuplot.gp
blob5e2a351325f14115cdcef5a7e653f125ea04464d
1 #!/usr/bin/gnuplot
3 set grid
4 set title "Packet Processing Engine"
5 set xlabel "Packets"
6 set ylabel "Processing Time in us"
7 set xtics nomirror rotate by -45
8 set ytics border in scale 0,0 mirror norotate offset character 0, 0, 0
9 set border 3
10 set grid y linestyle 4
11 set xrange [1:150000]
12 #set log y
13 set key below
15 set style line 1 lw 3 lt 1
16 set style line 2 lw 3 lt 2
17 set style line 3 lw 3 lt 3
18 set style line 4 lw 3 lt 4
19 set style line 5 lw 3 lt 5
20 set style line 6 lw 3 lt 6
22 #set terminal png size 1024.768
23 set terminal pdf monochrome dashed font ",6"
24 set output 'out.pdf'
26 plot "gnuplot.dat" using 1:1 title "linaer, 1 pkts = 1 us" with lines ls 1, \
27      "gnuplot.dat" using 1:2 title "sched single, 1 CPU" with lines ls 2, \
28      "gnuplot.dat" using 1:3 title "sched rr, 2 CPUs" with lines ls 3, \
29      "gnuplot.dat" using 1:4 title "sched rr, 4 CPUs" with lines ls 4