1 |
|
---|
2 | #
|
---|
3 | # Save in UTF-8 encoding.
|
---|
4 | #
|
---|
5 |
|
---|
6 |
|
---|
7 | set terminal pdf color enhanced size 6.0in,3.0in font "Times,17"
|
---|
8 |
|
---|
9 | INDIR="build"
|
---|
10 | OUTDIR="build"
|
---|
11 | SRCDIR="plots"
|
---|
12 |
|
---|
13 | set output OUTDIR.'/plot-list-cfa-attrib-remelem.pdf'
|
---|
14 |
|
---|
15 | set bmargin 6 # extra room at bottom for multiline x axis labels
|
---|
16 |
|
---|
17 | set xrange [1:6]
|
---|
18 | set xlabel "Operation (movement / polarity / accessor)" offset 0,-2,0
|
---|
19 | set xtics offset 4.2,0
|
---|
20 |
|
---|
21 | set logscale y 2
|
---|
22 | set yrange [0.3:10];
|
---|
23 | set ytics ( \
|
---|
24 | "+85%%" 6.666666667, \
|
---|
25 | "+80%%" 5, \
|
---|
26 | "+70%%" 3.333333333, \
|
---|
27 | "+60%%" 2.5, \
|
---|
28 | "+40%%" 1.666666667, \
|
---|
29 | "+20%%" 1.25, \
|
---|
30 | "0" 1, \
|
---|
31 | "-20%%" 0.833333333, \
|
---|
32 | "-60%%" 0.625, \
|
---|
33 | "-100%%" 0.5, \
|
---|
34 | "-200%%" 0.333333333 \
|
---|
35 | )
|
---|
36 | set ylabel "Duration (tailq-Relative)" offset -1.0,0
|
---|
37 |
|
---|
38 | # Draw axis-like line at speedup=0% (y=1.0)
|
---|
39 | set arrow from graph 0, first 1 to graph 1, first 1 nohead lt -1 lw 2
|
---|
40 |
|
---|
41 | set grid
|
---|
42 | set key top center horizontal
|
---|
43 |
|
---|
44 | BOXSPACING=0.14
|
---|
45 | BOXWIDTH=BOXSPACING * .88
|
---|
46 | set boxwidth BOXWIDTH absolute
|
---|
47 |
|
---|
48 | NUM_FXS=6
|
---|
49 |
|
---|
50 | offset(opNum, fxNum) = opNum + fxNum * BOXSPACING - (NUM_FXS+1) * BOXSPACING / 2 + 0.5
|
---|
51 |
|
---|
52 | # One row, to plot one-off points
|
---|
53 | $Singleton <<EOD
|
---|
54 | 0
|
---|
55 | EOD
|
---|
56 |
|
---|
57 | # empty candlesticks for quantiles, then
|
---|
58 | # varyiously styled points for means, then
|
---|
59 | # x axis values, then
|
---|
60 | # legend symbol augmentation
|
---|
61 | plot INDIR.'/plot-list-cfa-attrib-remelem.dat' \
|
---|
62 | using ($2 == 1 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'full' with candlesticks lt rgb "blue", \
|
---|
63 | '' using ($2 == 2 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'mand-head' with candlesticks lt rgb "dark-goldenrod", \
|
---|
64 | '' using ($2 == 3 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'no-listed' with candlesticks lt rgb "dark-salmon", \
|
---|
65 | '' using ($2 == 4 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'parity' with candlesticks lt rgb "gray40", \
|
---|
66 | '' using ($2 == 5 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'no-iter' with candlesticks lt rgb "dark-turquoise", \
|
---|
67 | '' using ($2 == 6 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'strip' with candlesticks lt rgb "red", \
|
---|
68 | '' using ($2 == 1 ? (offset($1, $2)) : 1/0):4 notitle with points pt 7 lt rgb "blue", \
|
---|
69 | '' using ($2 == 2 ? (offset($1, $2)) : 1/0):4:("◐") notitle with labels textcolor rgb "dark-goldenrod" font "DejaVuSans-Bold,14", \
|
---|
70 | '' using ($2 == 3 ? (offset($1, $2)) : 1/0):4:("◑") notitle with labels textcolor rgb "dark-salmon" font "DejaVuSans-Bold,14", \
|
---|
71 | '' using ($2 == 4 ? (offset($1, $2)) : 1/0):4 notitle with points pt 6 lt rgb "gray40", \
|
---|
72 | '' using ($2 == 5 ? (offset($1, $2)) : 1/0):4 notitle with points pt 3 lt rgb "dark-turquoise", \
|
---|
73 | '' using ($2 == 6 ? (offset($1, $2)) : 1/0):4 notitle with points pt 15 lt rgb "red", \
|
---|
74 | SRCDIR.'/list-cfa-attrib-remelem-meta.dat' \
|
---|
75 | using 1:(-999):xtic(2) notitle with points, \
|
---|
76 | $Singleton using (2.7 ):(8.0) notitle with points pt 7 lt rgb "blue", \
|
---|
77 | $Singleton using (2.7 ):(6.0):("◐") notitle with labels textcolor rgb "dark-goldenrod" font "DejaVuSans-Bold,14", \
|
---|
78 | $Singleton using (3.85):(8.0):("◑") notitle with labels textcolor rgb "dark-salmon" font "DejaVuSans-Bold,14", \
|
---|
79 | $Singleton using (3.85):(6.0) notitle with points pt 6 lt rgb "gray40", \
|
---|
80 | $Singleton using (5.1 ):(8.0) notitle with points pt 3 lt rgb "dark-turquoise", \
|
---|
81 | $Singleton using (5.1 ):(6.0) notitle with points pt 15 lt rgb "red"
|
---|