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