3 if [ "$1" != "" ]; then
6 echo "Please provide the name of the output file"
10 # parameter check -- k-value
11 if [ "$2" != "" ]; then
14 echo "Please provide the maximum K_WAY value"
22 # Note you need gnuplot 4.4 for the pdfcairo terminal.
26 set terminal pdfcairo size 7in,5in font "Gill Sans,5" linewidth 1 rounded fontscale .8 noenhanced
27 set output "${output_file}.pdf"
30 set multiplot layout 2,1
33 set style line 80 lt rgb "#808080"
36 set style line 81 lt 0 # dashed
37 set style line 81 lt rgb "#808080" # grey
39 set grid back linestyle 81
40 set border 3 back linestyle 80
43 set style data histogram
44 set style histogram clustered
46 set style fill solid border
47 set xlabel 'Heap Timing for different K values'
48 set ylabel 'Time (nanosec)'
54 set title 'Request Addition Time'
55 plot for [COL=2:($k_way + 1)] '${output_file}.dat' using COL:xticlabels(1) title columnheader
58 set title 'Request Completion Time'
59 plot for [COL=($k_way + 2):(2 * $k_way + 1)] '${output_file}.dat' using COL:xticlabels(1) title columnheader