forked from sujunyan/tex-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfig1.tex
63 lines (55 loc) · 2.01 KB
/
fig1.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
55
56
57
58
59
60
61
62
63
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
% style from fig.11 in https://ieeexplore.ieee.org/abstract/document/9031358
\begin{document}
\begin{tikzpicture}
\pgfplotstableread{datafile1.csv}{\datatable}
\begin{axis}[
xlabel={Computation time passed~[minutes]},
ylabel={bits per channel use},
ylabel style={at={(axis description cs:0.06,0.5)}},
xmin= 0, xmax= 120, ymin= 0,
legend style = {
legend pos=south east,
legend columns = {2},
nodes={scale=0.5}, % make the legend box smaller
%font = {\tiny},
},
grid = major,
grid style=dashed,
mark repeat={8},
width = \linewidth,
height = 0.5\linewidth,
mark options={solid},
%% extra label for information rate
every axis/.append style={
extra description/.code={
\node[scale=0.5] at (0.07,0.93) {Information Rate};
\node[scale=0.5] at (0.93,0.93) {Information Rate};
},
},
]
%1
\addplot[red,mark=o,dashed] table [x index=0, y index=1] {\datatable};
\addlegendentry{EM-type algorithm~[13] with 4-state FSMC}
%2
\addplot[dashed,mark=o] table [x index=0, y index=2] {\datatable};
\addlegendentry{EM-type algorithm~[13] with 16-state FSMC}
%3
\addplot[blue,mark=diamond] table [x index=0, y index=3] {\datatable};
\addlegendentry{Algorithm~11 with 1-qubit QSC}
%4
\addplot[red,mark=+] table [x index=0, y index=4] {\datatable};
\addlegendentry{Algorithm~11 with 4-state FSMC}
%5
\addplot[mark=+] table [x index=0, y index=5] {\datatable};
\addlegendentry{Algorithm~11 with 16-state FSMC}
%6
\addplot[red,mark=diamond] table [x index=0, y index=6] {\datatable};
\addlegendentry{Algorithm~11 with 2-qubit QSC}
%7
\addplot[dashed] table [x index=0, y index=7] {\datatable};
\addlegendentry{Estimated Information Rate~(Alg.~9)}
\end{axis}
\end{tikzpicture}
\end{document}