Skip to content

Commit 4d4f677

Browse files
committed
beautify scaling plot
1 parent ce5e07f commit 4d4f677

1 file changed

Lines changed: 77 additions & 35 deletions

File tree

libexec/scaling.gpl

Lines changed: 77 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,46 @@
1-
set terminal svg size 1000,700
1+
set terminal svg size 1000,700 enhanced font 'Verdana, 14'
2+
set palette maxcolors 8
3+
set palette defined ( \
4+
0 '#A6CEE3',\
5+
1 '#1F78B4',\
6+
2 '#B2DF8A',\
7+
3 '#33A02C',\
8+
4 '#FB9A99',\
9+
5 '#E31A1C',\
10+
6 '#FDBF6F',\
11+
7 '#FF7F00' )
12+
set style line 1 pt 7 lt 1 lc rgb '#A6CEE3' # light blue
13+
set style line 2 pt 7 lt 1 lc rgb '#1F78B4' # dark blue
14+
set style line 3 pt 7 lt 1 lc rgb '#B2DF8A' # light green
15+
set style line 4 pt 7 lt 1 lc rgb '#33A02C' # dark green
16+
set style line 5 pt 7 lt 1 lc rgb '#FB9A99' # light red
17+
set style line 6 pt 7 lt 1 lc rgb '#E31A1C' # dark red
18+
set style line 7 pt 7 lt 1 lc rgb '#FDBF6F' # light orange
19+
set style line 8 pt 7 lt 1 lc rgb '#FF7F00' # dark orange
20+
set style line 11 pt 11 lt 1 lc rgb '#A6CEE3' # light blue
21+
set style line 12 pt 11 lt 1 lc rgb '#1F78B4' # dark blue
22+
set style line 13 pt 11 lt 1 lc rgb '#B2DF8A' # light green
23+
set style line 14 pt 11 lt 1 lc rgb '#33A02C' # dark green
24+
set style line 15 pt 11 lt 1 lc rgb '#FB9A99' # light red
25+
set style line 16 pt 11 lt 1 lc rgb '#E31A1C' # dark red
26+
set style line 17 pt 11 lt 1 lc rgb '#FDBF6F' # light orange
27+
set style line 18 pt 11 lt 1 lc rgb '#FF7F00' # dark orange
28+
set style line 21 pt 8 lt 1 lc rgb '#A6CEE3' # light blue
29+
set style line 22 pt 8 lt 1 lc rgb '#1F78B4' # dark blue
30+
set style line 23 pt 8 lt 1 lc rgb '#B2DF8A' # light green
31+
set style line 24 pt 8 lt 1 lc rgb '#33A02C' # dark green
32+
set style line 25 pt 8 lt 1 lc rgb '#FB9A99' # light red
33+
set style line 26 pt 8 lt 1 lc rgb '#E31A1C' # dark red
34+
set style line 27 pt 8 lt 1 lc rgb '#FDBF6F' # light orange
35+
set style line 28 pt 8 lt 1 lc rgb '#FF7F00' # dark orange
36+
set style line 31 pt 6 lt 1 lc rgb '#A6CEE3' # light blue
37+
set style line 32 pt 6 lt 1 lc rgb '#1F78B4' # dark blue
38+
set style line 33 pt 6 lt 1 lc rgb '#B2DF8A' # light green
39+
set style line 34 pt 6 lt 1 lc rgb '#33A02C' # dark green
40+
set style line 35 pt 6 lt 1 lc rgb '#FB9A99' # light red
41+
set style line 36 pt 6 lt 1 lc rgb '#E31A1C' # dark red
42+
set style line 37 pt 6 lt 1 lc rgb '#FDBF6F' # light orange
43+
set style line 38 pt 6 lt 1 lc rgb '#FF7F00' # dark orange
244

345
# parse command line arguments:
446
datafile = 'scaling.txt'
@@ -29,15 +71,15 @@ plot datafile using 1:(1/$2*1e3) pt 7, f(x)
2971

3072
set xlabel 'Threads'
3173
set ylabel 'Event Time [ms]'
32-
set key box outside top center horizontal
74+
set key nobox outside top center horizontal
3375
set size 0.4,0.55
3476
set origin 0.0,0.0
3577

3678
plot datafile \
37-
using 1:((column($#))) pt 7 with points title 'Total' ,\
38-
'' using 1:(($5*$1)) pt 7 with points title 'N-Readers' ,\
39-
'' using 1:($5) pt 9 with points title 'Reader' ,\
40-
'' using 1:((column($#-1))) pt 9 with points title 'Writer' ,\
79+
using 1:((column($#))) pt 7 with points title 'Total' ,\
80+
'' using 1:(($5*$1)) pt 7 with points title 'N-Readers' ,\
81+
'' using 1:($5) pt 9 with points title 'Reader' ,\
82+
'' using 1:((column($#-1))) pt 11 with points title 'Writer' ,\
4183

4284
#set logscale y
4385
set size 0.6,1.0
@@ -46,7 +88,7 @@ set key outside right vertical
4688

4789
if (exists("uberMode")) {
4890
plot datafile \
49-
using 1:($6) pt 7 with points title columnhead(7) ,\
91+
using 1:($6) pt 7 with points title columnhead(6) ,\
5092
'' using 1:($7) pt 7 with points title columnhead(7) ,\
5193
'' using 1:($8) pt 7 with points title columnhead(8) ,\
5294
'' using 1:($9) pt 7 with points title columnhead(9) ,\
@@ -55,33 +97,33 @@ if (exists("uberMode")) {
5597
'' using 1:($12) pt 7 with points title columnhead(12) ,\
5698
} else {
5799
plot datafile \
58-
using 1:($6) pt 7 with points title columnhead(6) ,\
59-
'' using 1:($7) pt 7 with points title columnhead(7) ,\
60-
'' using 1:($8) pt 7 with points title columnhead(8) ,\
61-
'' using 1:($9) pt 7 with points title columnhead(9) ,\
62-
'' using 1:($10) pt 7 with points title columnhead(10) ,\
63-
'' using 1:($11) pt 7 with points title columnhead(11) ,\
64-
'' using 1:($12) pt 7 with points title columnhead(12) ,\
65-
'' using 1:($13) pt 7 with points title columnhead(13) ,\
66-
'' using 1:($14) pt 8 with points title columnhead(14) ,\
67-
'' using 1:($15) pt 8 with points title columnhead(15) ,\
68-
'' using 1:($16) pt 8 with points title columnhead(16) ,\
69-
'' using 1:($17) pt 8 with points title columnhead(17) ,\
70-
'' using 1:($18) pt 8 with points title columnhead(18) ,\
71-
'' using 1:($19) pt 8 with points title columnhead(19) ,\
72-
'' using 1:($20) pt 8 with points title columnhead(20) ,\
73-
'' using 1:($21) pt 8 with points title columnhead(21) ,\
74-
'' using 1:($22) pt 9 with points title columnhead(22) ,\
75-
'' using 1:($23) pt 9 with points title columnhead(23) ,\
76-
'' using 1:($24) pt 9 with points title columnhead(24) ,\
77-
'' using 1:($25) pt 9 with points title columnhead(25) ,\
78-
'' using 1:($26) pt 9 with points title columnhead(26) ,\
79-
'' using 1:($27) pt 9 with points title columnhead(27) ,\
80-
'' using 1:($28) pt 9 with points title columnhead(28) ,\
81-
'' using 1:($29) pt 9 with points title columnhead(29) ,\
82-
'' using 1:($30) pt 6 with points title columnhead(30) ,\
83-
'' using 1:($31) pt 6 with points title columnhead(31) ,\
84-
'' using 1:($32) pt 6 with points title columnhead(32) ,\
85-
'' using 1:($33) pt 6 with points title columnhead(33) ,\
100+
using 1:($6) ls 1 with points title columnhead(6) ,\
101+
'' using 1:($7) ls 2 with points title columnhead(7) ,\
102+
'' using 1:($8) ls 3 with points title columnhead(8) ,\
103+
'' using 1:($9) ls 4 with points title columnhead(9) ,\
104+
'' using 1:($10) ls 5 with points title columnhead(10) ,\
105+
'' using 1:($11) ls 6 with points title columnhead(11) ,\
106+
'' using 1:($12) ls 7 with points title columnhead(12) ,\
107+
'' using 1:($13) ls 8 with points title columnhead(13) ,\
108+
'' using 1:($14) ls 11 with points title columnhead(14) ,\
109+
'' using 1:($15) ls 12 with points title columnhead(15) ,\
110+
'' using 1:($16) ls 13 with points title columnhead(16) ,\
111+
'' using 1:($17) ls 14 with points title columnhead(17) ,\
112+
'' using 1:($18) ls 15 with points title columnhead(18) ,\
113+
'' using 1:($19) ls 16 with points title columnhead(19) ,\
114+
'' using 1:($20) ls 17 with points title columnhead(20) ,\
115+
'' using 1:($21) ls 18 with points title columnhead(21) ,\
116+
'' using 1:($22) ls 21 with points title columnhead(22) ,\
117+
'' using 1:($23) ls 22 with points title columnhead(23) ,\
118+
'' using 1:($24) ls 23 with points title columnhead(24) ,\
119+
'' using 1:($25) ls 24 with points title columnhead(25) ,\
120+
'' using 1:($26) ls 25 with points title columnhead(26) ,\
121+
'' using 1:($27) ls 26 with points title columnhead(27) ,\
122+
'' using 1:($28) ls 27 with points title columnhead(28) ,\
123+
'' using 1:($29) ls 28 with points title columnhead(29) ,\
124+
'' using 1:($30) ls 31 with points title columnhead(30) ,\
125+
'' using 1:($31) ls 32 with points title columnhead(31) ,\
126+
'' using 1:($32) ls 33 with points title columnhead(32) ,\
127+
'' using 1:($33) ls 34 with points title columnhead(33) ,\
86128
}
87129

0 commit comments

Comments
 (0)