1 | set terminal pdfcairo 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-cfa-attrib.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 yrange [0.3:10];
|
---|
18 | set ytics ( \
|
---|
19 | "+85%%" 6.666666667, \
|
---|
20 | "+80%%" 5, \
|
---|
21 | "+70%%" 3.333333333, \
|
---|
22 | "+60%%" 2.5, \
|
---|
23 | "+40%%" 1.666666667, \
|
---|
24 | "+20%%" 1.25, \
|
---|
25 | "0" 1, \
|
---|
26 | "-20%%" 0.833333333, \
|
---|
27 | "-60%%" 0.625, \
|
---|
28 | "-100%%" 0.5, \
|
---|
29 | "-200%%" 0.333333333 \
|
---|
30 | )
|
---|
31 | set ylabel "Duration (tailq-Relative)" offset -1.0,0
|
---|
32 |
|
---|
33 | # Draw axis-like line at speedup=0% (y=1.0)
|
---|
34 | set arrow from graph 0, first 1 to graph 1, first 1 nohead lt -1 lw 2
|
---|
35 |
|
---|
36 | set grid
|
---|
37 | set key top center horizontal
|
---|
38 |
|
---|
39 | BOXSPACING=0.2
|
---|
40 | BOXWIDTH=BOXSPACING * .85
|
---|
41 | set boxwidth BOXWIDTH absolute
|
---|
42 |
|
---|
43 | NUM_FXS=4
|
---|
44 |
|
---|
45 | offset(opNum, fxNum) = opNum + fxNum * BOXSPACING - (NUM_FXS+1) * BOXSPACING / 2 + 0.5
|
---|
46 |
|
---|
47 | # One row, to plot one-off points
|
---|
48 | $Singleton <<EOD
|
---|
49 | 0
|
---|
50 | EOD
|
---|
51 |
|
---|
52 | # empty candlesticks for quantiles, then
|
---|
53 | # varyiously styled points for means, then
|
---|
54 | # x axis values, then
|
---|
55 | # legend symbol augmentation
|
---|
56 | plot INDIR.'/plot-list-cfa-attrib.dat' \
|
---|
57 | using ($2 == 1 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'full' with candlesticks lt rgb "blue" , \
|
---|
58 | '' using ($2 == 2 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'parity' with candlesticks lt rgb "gray40", \
|
---|
59 | '' using ($2 == 3 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'no-iter' with candlesticks lt rgb "dark-turquoise" , \
|
---|
60 | '' using ($2 == 4 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'strip' with candlesticks lt rgb "red" , \
|
---|
61 | '' using ($2 == 1 ? (offset($1, $2)) : 1/0):4 notitle with points pt 7 lt rgb "blue" , \
|
---|
62 | '' using ($2 == 2 ? (offset($1, $2)) : 1/0):4 notitle with points pt 6 lt rgb "gray40", \
|
---|
63 | '' using ($2 == 3 ? (offset($1, $2)) : 1/0):4 notitle with points pt 3 lt rgb "dark-turquoise" , \
|
---|
64 | '' using ($2 == 4 ? (offset($1, $2)) : 1/0):4 notitle with points pt 15 lt rgb "red" , \
|
---|
65 | SRCDIR.'/list-cfa-attrib-meta.dat' \
|
---|
66 | using 1:(-999):xtic(2) notitle with points, \
|
---|
67 | $Singleton using (2.85):(8.0) notitle with points pt 7 lt rgb "blue" , \
|
---|
68 | $Singleton using (4.60):(8.0) notitle with points pt 6 lt rgb "gray40", \
|
---|
69 | $Singleton using (6.30):(8.0) notitle with points pt 3 lt rgb "dark-turquoise" , \
|
---|
70 | $Singleton using (7.95):(8.0) notitle with points pt 15 lt rgb "red"
|
---|