source: trunk/documents/theses/dstn/apply-perm-fig.tex @ 11961

Revision 11961, 1.9 KB checked in by dstn, 15 months ago (diff)

more kdtree figs

Line 
1\input{tikzfig}
2\input{kdfigs}
3\setpagesize{\applypermfigwidth}{\applypermfigheight}
4\begin{document}%
5\thispagestyle{empty}%
6\begin{center}%
7\begin{tikzpicture}[>=latex, scale=0.6]
8
9  \tikzstyle{vec}=[row sep=0, column sep=-0.4pt, inner sep=0, outer sep=0,
10    anchor=north west, nodes={draw, black, minimum size=0.6cm, inner sep=0, outer sep=0}]
11
12  \tikzstyle{lab}=[anchor=mid east, inner sep=0]
13
14  %\draw [thin,gray] (0,-10) grid (7,0);
15
16  \node [lab] at (-0.1,-1) {Original label array:};
17  \node [matrix, vec, nodes={rotate=90, minimum width=1.2cm}] (labelA) at (0,0) {%
18    \node (L0) {cat}; & \node (L1) {budgie}; & \node (L2) {dog}; &
19    \node (L3) {robin}; & \node (L4) {parrot}; & \node (L5) {horse}; \\
20  };
21
22  \begin{scope}[yshift=-3.5cm]
23
24    \node [lab] at (-0.1,-0.5) {Permutation array:};
25    \node [matrix, vec] (permB) at (0,0) {
26      \node (B0) {4}; & \node (B1) {1}; & \node (B2) {3}; &
27      \node (B3) {2}; & \node (B4) {0}; & \node (B5) {5}; \\
28    };
29
30
31    \begin{scope}[yshift=-1.5cm]
32
33      \node [lab] at (-0.1,-1) {Permuted label array:};
34      \node [matrix, vec, nodes={rotate=90, minimum width=1.2cm}] (labelA) at (0,0) {%
35        \node (P0) {parrot}; & \node (P1) {budgie}; & \node (P2) {robin}; &
36        \node (P3) {dog}; & \node (P4) {cat}; & \node (P5) {horse}; \\
37      };
38
39    \end{scope}
40  \end{scope}
41
42  \draw [thick] (B0.north) to [out=60, in=240] (L4.west);
43  \draw [thick] (B1.north) to (L1.west);
44  \draw [thick] (B2.north) to (L3.west);
45  \draw [thick] (B3.north) to (L2.west);
46  \draw [thick] (B4.north) to [out=120,in=300] (L0.west);
47  \draw [thick] (B5.north) to (L5.west);
48
49  \draw [thick] (B0.south) to (P0.east);
50  \draw [thick] (B1.south) to (P1.east);
51  \draw [thick] (B2.south) to (P2.east);
52  \draw [thick] (B3.south) to (P3.east);
53  \draw [thick] (B4.south) to (P4.east);
54  \draw [thick] (B5.south) to (P5.east);
55
56\end{tikzpicture}%
57\end{center}%
58\end{document}
Note: See TracBrowser for help on using the repository browser.