source: doc/theses/mike_brooks_MMath/plots/list-cmp-survey-swift.gp

Last change on this file was 6767f27, checked in by Michael Brooks <mlbrooks@…>, 4 days ago

Refactor list plotting code to enable new analyses.

Visible difference in relative plots no longer being 3 others baselined to lq-tailq, now all 4 baselined to their mean.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1set terminal pdfcairo color enhanced size 3.625in,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
6INDIR="build"
7OUTDIR="build"
8SRCDIR="plots"
9
10set output OUTDIR.'/plot-list-cmp-survey-swift.pdf'
11
12set bmargin 6 # extra room at bottom for multiline x axis labels
13
14set xrange [1:9]
15set xlabel "Operation (movement / polarity / accessor)" offset 0,-2,0
16set xtics offset 2.1,0
17
18set logscale y 2
19set yrange [0.3:2.0];
20set ytics ( \
21 "+40%%" 1.666666667, \
22 "+20%%" 1.25, \
23 "0" 1, \
24 "-20%%" 0.833333333, \
25 "-60%%" 0.625, \
26 "-100%%" 0.5, \
27 "-200%%" 0.333333333 \
28)
29set ylabel "Duration (tailq-Relative)" offset -1.0,0
30
31# Draw axis-like line at speedup=0% (y=1.0)
32set arrow from graph 0, first 1 to graph 1, first 1 nohead lt -1 lw 2
33
34set grid
35set key bottom center horizontal
36
37BOXSPACING=0.20
38BOXWIDTH=BOXSPACING * .88
39set boxwidth BOXWIDTH absolute
40
41NUM_FXS=4
42
43offset(opNum, fxNum) = opNum + fxNum * BOXSPACING - (NUM_FXS+1) * BOXSPACING / 2 + 0.5
44
45# One row, to plot one-off points
46$Singleton <<EOD
470
48EOD
49
50# empty candlesticks for quantiles, then
51# varyiously styled points for means, then
52# x axis values, then
53# legend symbol augmentation
54plot INDIR.'/plot-list-cmp-survey-swift.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-tailq' with candlesticks lt rgb "magenta" , \
58 '' using ($2 == 4 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'lq-list' with candlesticks lt rgb "purple" , \
59 '' using ($2 == 1 ? (offset($1, $2)) : 1/0):4 notitle with points pt 7 lt rgb "blue" , \
60 '' using ($2 == 2 ? (offset($1, $2)) : 1/0):4 notitle with points pt 9 lt rgb "dark-orange", \
61 '' using ($2 == 3 ? (offset($1, $2)) : 1/0):4 notitle with points pt 11 lt rgb "magenta" , \
62 '' using ($2 == 4 ? (offset($1, $2)) : 1/0):4 notitle with points pt 13 lt rgb "purple" , \
63 SRCDIR.'/list-cmp-survey-meta.dat' \
64 using 1:(-999):xtic(2) notitle with points, \
65 $Singleton using (3.73):(7.50) notitle with points pt 7 lt rgb "blue" , \
66 $Singleton using (5.44):(7.50) notitle with points pt 9 lt rgb "dark-orange", \
67 $Singleton using (7.14):(7.50) notitle with points pt 13 lt rgb "purple"
Note: See TracBrowser for help on using the repository browser.