source: doc/theses/mike_brooks_MMath/plots/string-allocn.gp@ 2410424

Last change on this file since 2410424 was 2410424, checked in by Michael Brooks <mlbrooks@…>, 4 months ago

Pushing work in progress on data for string plots.

All in-thesis plots source from baselined result data, with no manual massaging. Removing older placeholder graph images and temp data.

Allocation plot, especially the last attribution stacked bar, is showing untrustrworthy data.

  • Property mode set to 100644
File size: 4.2 KB
Line 
1set terminal pdf color enhanced size 6.0in,4.0in font "Times,17"
2#set terminal postscript portrait enhanced size 7.5, 10. color solid 9.5;
3#set terminal wxt size 950,1250
4
5INDIR="build"
6OUTDIR="build"
7
8SCALE=1024
9
10# common to all
11set macros
12set output OUTDIR."/plot-string-allocn.pdf"
13set multiplot layout 1, 3 ;
14set key outside top center horizontal
15set grid
16
17# common to only first two graphs
18set logscale x 2
19#set mxtics 3 # 3 steps within each doubling (e.g. 3 steps of of 32 between 32 and 128 => tick on 32s in there)
20set xlabel "Heap Used (B)"
21set logscale y 10
22
23#
24# CFA multisize
25#
26
27set ylabel "Duration (ns)" offset 2,0
28set yrange[35:125]
29set ytics add (40, 50, 60, 70, 80, 90, 110, 120)
30
31set xrange[32:4096]
32set xtics rotate by -90
33set xtics ("" 32, "64 k" 64, "" 128, "256 k" 256, "" 512, "1 M" 1024, "" 2048, "4 M" 4096)
34
35# First each curve, then each default-expansion point
36plot INDIR."/plot-string-allocn.dat" \
37 i 0 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "blue" pt 2 ps 1 lw 1, \
38 '' i 1 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \
39 '' i 2 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "brown" pt 8 ps 1 lw 1, \
40 '' i 3 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "black" pt 10 ps 1 lw 1, \
41 '' i 4 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "magenta" pt 12 ps 1 lw 1, \
42 '' i 0 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "blue" pt 66 ps 2, \
43 '' i 1 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "red" pt 66 ps 2, \
44 '' i 2 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "brown" pt 66 ps 2, \
45 '' i 3 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "black" pt 66 ps 2, \
46 '' i 4 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "magenta" pt 66 ps 2
47
48unset ylabel
49
50unset xtics
51unset ytics
52unset yrange
53unset xrange
54
55
56#
57# STL comparison
58#
59
60
61set yrange[40:85]
62set ytics add (40, 45, 50, 55, 60, 65, 70, 75, 80, 85)
63set mytics 90 # 90 steps within each decade (e.g. 90 steps of of 1 between 10 and 100 => tick on 1s in there)
64
65set xrange[64:4096]
66set xtics rotate by -90
67set xtics ("64 k" 64, "128 k" 128, "256 k" 256, "512 k" 512, "1 M" 1024, "2 M" 2048, "4 M" 4096)
68
69# skullduggeries:
70# hardcoding chunk index and assuming data in the chunk (by hardcoding only the stl series title)
71# series order is meaningless but important: achieves z-order readability and legend order acceptability
72
73plot INDIR."/plot-string-allocn.dat" \
74 i 8 using ($3/SCALE) :2 title "tradeoff" with lines lt rgb "#77000000" dt (2,2) lw 8, \
75 '' i 1 using ($3/SCALE) :2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \
76 '' i 6 using ( (strcol(4) eq "cfa") ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "red" pt 66 ps 2, \
77 '' i 6 using ($3/SCALE) :2 notitle with lines lt rgb "#77000000" dt (2,2) lw 8, \
78 '' i 6 using ( (strcol(4) eq "stl") ? ($3/SCALE) : 1/0 ):2 title "stl, len=50" with points lt rgb "red" pt 5 ps 1, \
79 '' i 3 using ($3/SCALE) :2 title columnheader(1) with linespoints lt rgb "black" pt 10 ps 1 lw 1, \
80 '' i 8 using ( (strcol(4) eq "stl") ? ($3/SCALE) : 1/0 ):2 title "stl, len=200" with points lt rgb "black" pt 5 ps 1, \
81 '' i 8 using ( (strcol(4) eq "cfa") ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "black" pt 66 ps 2
82
83
84unset mytics
85unset ytics
86unset yrange
87unset xrange
88
89
90
91# common to first two graphs
92unset logscale
93unset xlabel
94unset mxtics
95
96#
97# Attribution
98#
99
100set style data histogram
101set ytics auto
102set style histogram clustered gap 1 rowstacked
103set style fill solid border -1
104set boxwidth 0.8
105set xtics rotate by -45
106
107plot for [col=3:8] \
108 INDIR.'/plot-string-allocn-attrib.dat' using col:xticlabels(stringcolumn(2).", len=".stringcolumn(1)) index 0 title columnheader(col)
Note: See TracBrowser for help on using the repository browser.