-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_n_wx.tex
More file actions
141 lines (124 loc) · 3.38 KB
/
plot_n_wx.tex
File metadata and controls
141 lines (124 loc) · 3.38 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
\documentclass{standalone}
\usepackage{tikz,pgfplots, pgfplotstable}
\usetikzlibrary{spy}
\usepackage{braket}
\usepackage{xcolor}
\pgfplotsset{compat=1.7}
\definecolor{color1}{RGB}{190,139,57}
\definecolor{color2}{RGB}{124,115,203}
\definecolor{color3}{RGB}{118,167,76}
\definecolor{color4}{RGB}{196,90,156}
\definecolor{color5}{RGB}{70,193,154}
\definecolor{color6}{RGB}{199,85,81}
%Merged_derdeder
\pgfplotstablesort[sort key = d, sort cmp=int <]{\sortednkthreethreedtwo}{list_n_k_syst33_dim2.txt}
\pgfplotstablesort[sort key = d, sort cmp=int <]{\sortednkthreefourdtwo}{list_n_k_syst34_dim2.txt}
\pgfplotstablesort[sort key = d, sort cmp=int <]{\sortednkfourthreedthree}{list_n_k_syst43_dim3.txt}
\pgfplotstablesort[sort key = d, sort cmp=int <]{\sortednkthreethree}{list_n_k_syst33.txt}
\pgfplotstablesort[sort key = d, sort cmp=int <]{\sortednknarrowCCtt}{list_n_k_narrowCC_33_dim6.txt}
\pgfplotstablesort[sort key = d, sort cmp=int <]{\sortednknarrowCC}{list_n_k_narrowCC_dim6.txt}
\begin{document}
\pgfplotsset{
% define the custom colormap
colormap={my colormap}{
% color=(color5),
% color=(color1),
% color=(color6),
color=(green!80!black),
color=(blue!50!white),
color=(orange!50!yellow)
},
}
\begin{tikzpicture}
\begin{axis}[
name=plot,
% title={Pin codes from hypergraph products of small binary matrices},
ylabel={max $X$-stabilizer weight},
xlabel=n,
xmode=log,
ymode=log,
% colormap name=my colormap,
% colorbar sampled,
% colormap access=piecewise const, % add this
% colorbar,
% colorbar style={
% title=d,
%% ylabel=distance,
% ytick={4,6,8}
% },
legend pos=outer north east,
legend style={font=\scriptsize},
legend entries={
{$D=2$},
{$D=3$},
{$D=6$},
{$d=4$},
{$d=6$},
{$d=8$},
{$d=16$},
% {$D=2$},
% {$1/2$ rate},
% {$1/4$ rate},
% {$1/8$ rate}
},
legend cell align=left
]
\addlegendimage{mark = x, only marks}
\addlegendimage{mark = +, only marks}
\addlegendimage{mark = star, only marks}
%\addlegendimage{mark = star, only marks, color4}
\addlegendimage{green!80!black, thick}
\addlegendimage{blue!50!white, thick}
\addlegendimage{orange!50!yellow, thick}
\addlegendimage{red, thick}
\addlegendimage{dashed}
\addlegendimage{dotted}
%\addlegendimage{dashdotted}
%\coordinate (a1) at (axis cs:20,10);
%\coordinate (a2) at (axis cs:10000,5000);
%\coordinate (b1) at (axis cs:20,5);
%\coordinate (b2) at (axis cs:10000,2500);
%\coordinate (c1) at (axis cs:20,2.5);
%\coordinate (c2) at (axis cs:10000,1250);
%\draw[dashed] (a1) -- (a2);
%% \draw[dotted] (b1) -- (b2);
%\draw[dotted] (c1) -- (c2);
\addplot[
scatter,
mark=+,
only marks
]
table [x = n, y = wx, scatter src = \thisrow{d}]{\sortednkfourthreedthree};
\addplot[
scatter,
mark=+,
only marks
]
table [x = n, y = wx, scatter src = \thisrow{d}]{\sortednkthreethree};
\addplot[
scatter,
mark=x,
only marks
]
table [x = n, y = wx, scatter src = \thisrow{d}]{\sortednkthreefourdtwo};
\addplot[
scatter,
mark=x,
only marks
]
table [x = n, y = wx, scatter src = \thisrow{d}]{\sortednkthreethreedtwo};
\addplot[
mark=star,
color=orange!50!yellow,
only marks
]
table [x = n, y = wx]{\sortednknarrowCC};
\addplot[
mark=star,
color=red,
only marks
]
table [x = n, y = wx]{\sortednknarrowCCtt};
\end{axis}
\end{tikzpicture}
\end{document}