-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprod_estimate_params.tex
More file actions
95 lines (77 loc) · 3.42 KB
/
prod_estimate_params.tex
File metadata and controls
95 lines (77 loc) · 3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage[a4paper,margin=0.4cm]{geometry}
\usepgfplotslibrary{groupplots}
\usetikzlibrary{calc}
% ================= COLOR + MARKER CYCLE =================
\pgfplotscreateplotcyclelist{crda_rda_cycle}{
% --- CDA ---
{blue, solid, mark=*},
% --- RDA ---
{green!60!black, solid, mark=*},
}
\begin{document}
\begin{figure*}[t]
\centering
\begin{tikzpicture}
\begin{groupplot}[
group style={
group size=2 by 4,
horizontal sep=1.6cm,
vertical sep=2.0cm,
group name=epsgroup,
},
width=0.4\textwidth,
height=5.5cm,
grid=major,
grid style={dashed, gray!30},
xmode=log,
ymode=log,
cycle list name=crda_rda_cycle,
legend style={
draw=black,
fill=white,
fill opacity=0.9,
text opacity=1,
at={(0.97,0.97)},
anchor=north east,
font=\scriptsize,
row sep=-2pt
}
]
% -------- Duplication (CDA) --------
\nextgroupplot[xlabel={$k_2$}, ylabel={}, title={Replication Factor}]
\addplot+[mark repeat=20] table[x=k2,y=replication_factor,col sep=comma]{results/cda/estimates_k_16_eps10_M5000.csv};
\addplot+[mark repeat=20] table[x=k2,y=replication_factor,col sep=comma]{results/rda/estimates_data_eps10_M5000.csv};
\legend{CDA, RDA}
% -------- Duplication (RDA) --------
\nextgroupplot[xlabel={$k_2$}, ylabel={}, title={Replication Factor}]
\addplot+[mark repeat=20] table[x=k2,y=replication_factor,col sep=comma]{results/cda/estimates_k_16_eps10_M10000.csv};
\addplot+[mark repeat=20] table[x=k2,y=replication_factor,col sep=comma]{results/rda/estimates_data_eps10_M10000.csv};
\legend{CDA, RDA}
% -------- Probagation Cost (CDA) --------
\nextgroupplot[xlabel={$k_2$}, ylabel={}, title={Propagation Cost}]
\addplot+[mark repeat=20] table[x=k2,y=probagation_complexity,col sep=comma]{results/cda/estimates_k_16_eps10_M5000.csv};
\addplot+[mark repeat=20] table[x=k2,y=probagation_complexity,col sep=comma]{results/rda/estimates_data_eps10_M5000.csv};
\legend{CDA, RDA}
% -------- Probagation Cost (RDA) --------
\nextgroupplot[xlabel={$k_2$}, ylabel={}, title={Propagation Cost}, cycle list shift=3]
\addplot+[mark repeat=20] table[x=k2,y=probagation_complexity,col sep=comma]{results/cda/estimates_k_16_eps10_M10000.csv};
\addplot+[mark repeat=20] table[x=k2,y=probagation_complexity,col sep=comma]{results/rda/estimates_data_eps10_M10000.csv};
\legend{CDA, RDA}
% -------- Historical Synchronization Cost (CDA) --------
\nextgroupplot[xlabel={$k_2$}, ylabel={}, title={Historical Synchronization Cost}]
\addplot+[mark repeat=20] table[x=k2,y=historical_synchronization_complexity,col sep=comma]{results/cda/estimates_k_16_eps10_M5000.csv};
\addplot+[mark repeat=20] table[x=k2,y=historical_synchronization_complexity,col sep=comma]{results/rda/estimates_data_eps10_M5000.csv};
\legend{CDA, RDA}
% % -------- Historical Synchronization Cost (RDA) --------
\nextgroupplot[xlabel={$k_2$}, ylabel={}, title={Historical Synchronization Cost}, cycle list shift=3]
\addplot+[mark repeat=20] table[x=k2,y=historical_synchronization_complexity,col sep=comma]{results/cda/estimates_k_16_eps10_M10000.csv};
\addplot+[mark repeat=20] table[x=k2,y=historical_synchronization_complexity,col sep=comma]{results/rda/estimates_data_eps10_M10000.csv};
\legend{CDA, RDA}
\end{groupplot}
\end{tikzpicture}
\caption{Comparison of CDA and RDA metrics with legendary in-plot boxes.}
\end{figure*}
\end{document}