/
iso-planes_multiple_ocean+projection+style+scope+slant.tex
134 lines (106 loc) · 4.81 KB
/
iso-planes_multiple_ocean+projection+style+scope+slant.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
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
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning, patterns, decorations.pathreplacing}
\usetikzlibrary{calc}
\usetikzlibrary{arrows,shapes,backgrounds}
\begin{document}
\begin{tikzpicture}[scale=.9,every node/.style={minimum size=1cm},on grid]
\tikzstyle{select arrow}=[->, thick,cyan!70!black]
\tikzstyle{action arrow}=[->, thick,cyan!90!black]
\tikzstyle{action good}=[thick,cyan!50!black]
\tikzstyle{action bad}=[thick,cyan!30]
\tikzstyle{active neuron}=[cyan!90]
\tikzstyle{selected neuron}=[cyan!30]
\tikzstyle{bad action}=[pattern=north west lines, pattern color=cyan!30]
%FINAL STATE. plane at the bottom
\begin{scope}[
yshift=-160,every node/.append style={
yslant=0.5,xslant=-1},yslant=0.5,xslant=-1
]
\fill[white,fill opacity=0.9] (0,0) rectangle (2.5,2.5);
\draw[step=5mm, black] (0,0) grid (2.5,2.5);
\draw[black,very thick] (0,0) rectangle (2.5,2.5);
\fill[active neuron] (0.55,0.55) rectangle (0.95,0.95);
\draw[->,thick, blue!50!cyan] (0.3,0.25) -- (0.7,0.25);
\end{scope}
\draw[action arrow, red, thin] (-0.5,-3.25) -- (0,-4.9);
%SECOND ACTION
\begin{scope}[
yshift=-120,every node/.append style={
yslant=0.5,xslant=-1},yslant=0.5,xslant=-1
]
\fill[white,fill opacity=.95] (0,0) rectangle (1.5,1.5);
\draw[step=5mm, black] (0,0) grid (1.5,1.5);
\draw[black,very thick] (0,0) rectangle (1.5,1.5);
\fill[bad action] (0.05,0.05) rectangle (0.45,0.45);
\fill[bad action] (1.05,0.05) rectangle (1.45,0.45);
\fill[bad action] (1.05,1.05) rectangle (1.45,1.45);
\fill[bad action] (0.05,1.05) rectangle (0.45,1.45);
\node[action good] at (0.25,0.75) {W};
\node[action good] at (1.25,0.75) {E};
\node[action good] at (0.75,1.25) {N};
\node[action bad] at (0.75,0.25) {S};
\end{scope}
\draw[action arrow] (0.5,-2.45) -- (0.5,-3.25);
\draw[action arrow, red] (0.5,-2.45) -- (-0.5,-3.25);
\draw[action arrow] (0.5,-2.45) -- (-0.5,-3.75);
%SECOND STATE
\begin{scope}[
yshift=-80,every node/.append style={
yslant=0.5,xslant=-1},yslant=0.5,xslant=-1
]
\fill[white,fill opacity=0.9] (0,0) rectangle (2.5,2.5);
\draw[step=5mm, black] (0,0) grid (2.5,2.5);
\draw[black,very thick] (0,0) rectangle (2.5,2.5);
\fill[active neuron] (0.55,0.05) rectangle (0.95,0.45);
\fill[selected neuron] (0.05,0.05) rectangle (0.45,0.45);
\fill[selected neuron] (1.05,0.05) rectangle (1.45,0.45);
\fill[selected neuron] (0.55,0.55) rectangle (0.95,0.95);
\draw[select arrow] (0.85,0.25) -- (1.25,0.25);
\draw[select arrow] (0.75,0.35) -- (0.75,.75);
\draw[select arrow] (0.65,0.25) -- (0.25,0.25);
\end{scope}
\draw[action arrow, red] (0.5,-0.45) -- (0.5,-2.3);
%FIRST ACTION
\begin{scope}[
yshift=-40,every node/.append style={
yslant=0.5,xslant=-1},yslant=0.5,xslant=-1
]
\fill[white,fill opacity=.95] (0,0) rectangle (1.5,1.5);
\draw[step=5mm, black] (0,0) grid (1.5,1.5);
\draw[black,very thick] (0,0) rectangle (1.5,1.5);
\fill[bad action] (0.05,0.05) rectangle (0.45,0.45);
\fill[bad action] (1.05,0.05) rectangle (1.45,0.45);
\fill[bad action] (1.05,1.05) rectangle (1.45,1.45);
\fill[bad action] (0.05,1.05) rectangle (0.45,1.45);
\node[action bad] at (0.25,0.75) {W};
\node[action good] at (1.25,0.75) {E};
\node[action good] at (0.75,1.25) {N};
\node[action bad] at (0.75,0.25) {S};
\end{scope}
\draw[action arrow, red] (0.125,0.125) -- (0.5,-0.45);
\draw[action arrow] (-0.125,0.125) -- (-0.5,-0.45);
%INITIAL STATE. plane at the top
\begin{scope}[
every node/.append style={
yslant=0.5,xslant=-1},yslant=0.5,xslant=-1
]
\fill[white,fill opacity=0.9] (0,0) rectangle (2.5,2.5);
\draw[step=5mm, black] (0,0) grid (2.5,2.5);
\draw[black,very thick] (0,0) rectangle (2.5,2.5);
\fill[active neuron] (0.05,0.05) rectangle (0.45,0.45);
\fill[selected neuron] (0.55,0.05) rectangle (0.95,0.45);
\fill[selected neuron] (0.05,0.55) rectangle (0.45,0.95);
\draw [decorate,decoration={brace,amplitude=10pt}] (0,2.6) -- (2.6,2.6);
\node at (1.6,3.3) {d};
\draw[select arrow] (0.25,0.35) -- (0.25,0.75);
\draw[select arrow] (0.35,0.25) -- (0.75,0.25);
\node at (1.125,-0.3) {\textbf{x}};
\node at (-0.3,1.125) {\textbf{y}};
\end{scope}
\node at (4,1.25) {$S$};
\node at (4,-0.5) {$a$};
\node at (4,-1.5) {$S'$};
\node at (4,-3.25) {$a'$};
\end{tikzpicture}
\end{document}