aboutsummaryrefslogtreecommitdiff
path: root/img/interpolation_edge_case.tikz
blob: 1105588d9c019db3958992ff63d2df8eed7c4638 (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
\begin{tikzpicture}[
	scale=1.5,
	coarse/.style={circle,draw=gray,inner sep=4},
	fine/.style={cross out,draw=gray,inner sep=2},
	ibase/.style={coarse,draw=black!40!blue,very thick},
	wantedfine/.style={fine,draw=black!40!blue,ultra thick},
	arrow/.style={-{Latex[length=2mm]},thick},
]

\foreach \x in {0,...,3}
	\foreach \y in {-2,...,2}
		\node[coarse] at (\x,\y){ };

\foreach \x in {4,...,6}
	\foreach \y in {0,...,2}
		\node[coarse] at (\x,\y){ };

\foreach \x in {0,...,8}
	\foreach \y in {-4,...,2}
		\node[fine] at (2+\x*0.5,\y*0.5){ };

\node[wantedfine] at (2,0.5){ };
\node[ibase] at (2,1){ };
\node[ibase] at (2,0){ };
\node[ibase] at (2,-1){ };

\node[wantedfine,draw=black!40!green] at (5.5,1){ };
\node[ibase,draw=black!40!green] at (6,1){ };
\node[ibase,draw=black!40!green] at (5,1){ };
\node[ibase,draw=black!40!green] at (4,1){ };

\draw[dashed,very thick] (1.8,-2.2) -- (1.8,1.2) -- (6.2,1.2) -- (6.2,0.8) -- (2.2,0.8) -- (2.2,-2.2) -- (1.8,-2.2);
\draw[dashed,draw=gray] (2.8,-2.2) -- (2.8,0.2) -- (6.2,0.2) -- (6.2,-0.2) -- (3.2,-0.2) -- (3.2,-2.2) -- (2.8,-2.2);

\end{tikzpicture}