| 1 | set terminal pdf color enhanced size 6.0in,3.0in font "Times,17"
|
|---|
| 2 |
|
|---|
| 3 | INDIR="build"
|
|---|
| 4 | OUTDIR="build"
|
|---|
| 5 | SRCDIR="plots"
|
|---|
| 6 |
|
|---|
| 7 | set output OUTDIR.'/plot-list-cmp-intrl-shift.pdf'
|
|---|
| 8 |
|
|---|
| 9 | set bmargin 6 # extra room at bottom for multiline x axis labels
|
|---|
| 10 |
|
|---|
| 11 | set xrange [1:9]
|
|---|
| 12 | set xlabel "Operation (movement / polarity / accessor)" offset 0,-2,0
|
|---|
| 13 | set xtics offset 4.2,0
|
|---|
| 14 |
|
|---|
| 15 | set logscale y 2
|
|---|
| 16 | set yrange [0.75:1.8];
|
|---|
| 17 | set ytics ( \
|
|---|
| 18 | "40%%" 1.666666667, \
|
|---|
| 19 | "30%%" 1.428571429, \
|
|---|
| 20 | "20%%" 1.25, \
|
|---|
| 21 | "10%%" 1.111111111, \
|
|---|
| 22 | "0%%" 1, \
|
|---|
| 23 | "-10%%" 0.909090909, \
|
|---|
| 24 | "-20%%" 0.833333333, \
|
|---|
| 25 | "-30%%" 0.769230769, \
|
|---|
| 26 | )
|
|---|
| 27 | set ylabel "Duration (No-Interleave-Relative)"
|
|---|
| 28 |
|
|---|
| 29 | # Draw axis-like line at speedup=0% (y=1.0)
|
|---|
| 30 | set arrow from graph 0, first 1 to graph 1, first 1 nohead lt -1 lw 2
|
|---|
| 31 |
|
|---|
| 32 | set grid
|
|---|
| 33 | set key top center horizontal
|
|---|
| 34 |
|
|---|
| 35 | BOXSPACING=0.25
|
|---|
| 36 | BOXWIDTH=BOXSPACING * .90
|
|---|
| 37 | set boxwidth BOXWIDTH absolute
|
|---|
| 38 |
|
|---|
| 39 | NUM_FXS=4
|
|---|
| 40 |
|
|---|
| 41 | offset(opNum, fxNum) = opNum + fxNum * BOXSPACING - (NUM_FXS+1) * BOXSPACING / 2 + 0.5
|
|---|
| 42 |
|
|---|
| 43 | # One row, to plot one-off points
|
|---|
| 44 | $Singleton <<EOD
|
|---|
| 45 | 0
|
|---|
| 46 | EOD
|
|---|
| 47 |
|
|---|
| 48 | # empty candlesticks for quantiles, then
|
|---|
| 49 | # varyiously styled points for means, then
|
|---|
| 50 | # x axis values, then
|
|---|
| 51 | # legend symbol augmentation
|
|---|
| 52 | plot INDIR.'/plot-list-cmp-intrl-shift.dat' \
|
|---|
| 53 | using ($2 == 1 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'upp-upp' with candlesticks lt rgb "dark-orange", \
|
|---|
| 54 | '' using ($2 == 2 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'cfa-cfa' with candlesticks lt rgb "blue" , \
|
|---|
| 55 | '' using ($2 == 3 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'lq-tailq' with candlesticks lt rgb "magenta" , \
|
|---|
| 56 | '' using ($2 == 4 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'lq-list' with candlesticks lt rgb "purple" , \
|
|---|
| 57 | '' using ($2 == 1 ? (offset($1, $2)) : 1/0):4 notitle with points pt 7 lt rgb "dark-orange", \
|
|---|
| 58 | '' using ($2 == 2 ? (offset($1, $2)) : 1/0):4 notitle with points pt 9 lt rgb "blue" , \
|
|---|
| 59 | '' using ($2 == 3 ? (offset($1, $2)) : 1/0):4 notitle with points pt 11 lt rgb "magenta" , \
|
|---|
| 60 | '' using ($2 == 4 ? (offset($1, $2)) : 1/0):4 notitle with points pt 13 lt rgb "purple" , \
|
|---|
| 61 | SRCDIR.'/list-cmp-intrl-shift-meta.dat' \
|
|---|
| 62 | using 1:(-999):xtic(2) notitle with points, \
|
|---|
| 63 | $Singleton using (3.73):(1.69) notitle with points pt 7 lt rgb "dark-orange", \
|
|---|
| 64 | $Singleton using (5.44):(1.69) notitle with points pt 9 lt rgb "blue" , \
|
|---|
| 65 | $Singleton using (6.14):(1.69) notitle with points pt 11 lt rgb "magenta" , \
|
|---|
| 66 | $Singleton using (7.14):(1.69) notitle with points pt 13 lt rgb "purple"
|
|---|