This repository has been archived by the owner on May 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.tex
55 lines (45 loc) · 1.86 KB
/
error.tex
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
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
\usetikzlibrary{patterns}
\pgfplotsset{compat=1.10}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=\textwidth,
%height=0.55\textwidth,
xlabel=Alpha value,
grid=major,
ylabel=Mean error (points),
%xmin=-0.1,xmax=5000, % <-- added here to preserve view
%ymin=-0.1,ymax=34000,
legend style={at={(0.52,-0.12)},anchor=north, legend columns=1}
]
\addplot[mark=pentagon, mark size=1pt, red] table [col sep=comma]{../results/tuning/error};
\addlegendentry{Mean error w.r.t optimal solution. Fine grain (Step 0.01)};
\addplot[mark=pentagon, mark size=1pt, black] table [col sep=comma]{../results/tuning/error_coarse};
\addlegendentry{Mean error w.r.t optimal solution. Coarse grain (Step 0.1)};
%\addplot[mark=pentagon, mark size=1pt, black] table [col sep=comma]{../exp1/clean};
%\addlegendentry{Agreement time};
%
%%\addplot[black, thick, samples=50, domain=0:5000] {20000};
%%\addlegendentry{Did not finish}
%\addplot[thick, samples=50, smooth,domain=0:6,blue] coordinates {(2000,0)(2000,35000)};
%\addlegendentry{Timeout time}
%\addplot[thick, samples=50, smooth,domain=0:6,red, forget plot] coordinates {(4100,0)(4100,35000)};
%\path[name path=A] (axis cs:4100,0) -- (axis cs:4100,35000);
%\path[name path=B] (axis cs:5000,0) -- (axis cs:5000,35000);
%\addplot[pattern=north west lines,pattern color=red, area legend]
% fill between[
% of=A and B,
% soft clip={domain=0:1},
% ];
%\addlegendentry{Did not finish};
%%\draw[dashed] (axis cs:0,200) -- (axis cs:5000, 200);
%%\addlegendentry{Proposer starting delay}
%\addplot [dashed, samples=200,domain=0:5000] coordinates {(0, 200)(5000,200)};
%\addlegendentry{Proposer starting delay};
\end{axis}
\end{tikzpicture}
\end{document}