aboutsummaryrefslogtreecommitdiff
path: root/img/grid_factors.tikz
blob: edb80aee3d7ec9f4927a30761b555c8a10526172 (plain)
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
\begin{tikzpicture}[
	cavity/.style = {
		matrix of nodes,
		nodes in empty cells,
		column sep = -\pgflinewidth,
		row sep    = -\pgflinewidth,
		nodes={
			inner sep=0mm,
			outer sep=0pt,
			minimum size=5mm,
			text height=\ht\strutbox,
			text depth=\dp\strutbox,
			draw
		}
	}
]

\matrix[cavity,label=below:{\(N=15\)}] {
	5 & 4 & 4 & 4 & 5 \\
	3 & 3 & 2 & 3 & 4 \\
	2 & 2 & 2 & 2 & 3 \\
	1 & 1 & 1 & 1 & 1 \\
	0 & 1 & 1 & 1 & 0 \\
};

\matrix[cavity,label=below:{\(N=30\)}] at (3, 0) {
	4 & 3 & 3 & 3 & 4 \\
	1 & 1 & 1 & 1 & 2 \\
	1 & 0 & 0 & 1 & 2 \\
	0 & 0 & 0 & 1 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
};

\matrix[cavity,label=below:{\(N=60\)}] at (6, 0) {
	3 & 2 & 2 & 2 & 3 \\
	0 & 0 & 0 & 0 & 1 \\
	0 & 0 & 0 & 0 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
};

\matrix[cavity,label=below:{\(N=120\)}] at (9, 0) {
	2 & 1 & 1 & 1 & 2 \\
	0 & 0 & 0 & 0 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
};

\matrix[cavity,label=below:{\(N=240\)}] at (12, 0) {
	1 & 0 & 0 & 0 & 1 \\
	0 & 0 & 0 & 0 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
	0 & 0 & 0 & 0 & 0 \\
};
\end{tikzpicture}