-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcreateobservable.tex
67 lines (60 loc) · 2.03 KB
/
createobservable.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
\documentclass{standalone}
\usepackage{tikz,rxmarbles}
\usetikzlibrary[arrows,shapes,positioning,matrix]
\begin{document}
\begin{tikzpicture}
\matrix[row sep=0.5cm]
{
\draw [time] (0,0) -- (7,0);
\node[marble,circle,red] (0x0) at (1,0) {};
\node[marble,circle,green] (1x0) at (3,0) {};
\node[marble,circle,blue] (2x0) at (4,0) {};
\node[complete] (3x0) at (6.5,0) {};
\\
\node[box,minimum width=7cm] (op) {CreateObservable\{
\begin{tikzpicture}[baseline=-1mm]
\node[marble,circle] (x) {};
\coordinate[right=5mm of x] (tstart);
\coordinate[right=27.5mm of x] (tend);
\draw [time] (tstart) -- (tend);
\node[marble,diamond,right=7.5mm of x] (y) {};
\node[marble,diamond,right=17.5mm of x] (y) {};
\draw [fdash] (x) -- (tstart);
\end{tikzpicture}
\}};
\\
\draw [time] (0,0) -- (7,0);
\begin{scope}[xshift=1cm,rotate=-25]
\draw [time] (0,0) -- (2.5,0);
\coordinate (0x2) at (0,0);
\node[marble,diamond,red] (0x1x2) at (0.7,0) {};
\node[marble,diamond,red] (0x2x2) at (1.5,0) {};
\node[complete,rotate=-21] (0x3x2) at (2,0) {};
\end{scope}
\begin{scope}[xshift=3cm,rotate=-25]
\draw [time] (0,0) -- (2.5,0);
\coordinate (1x2) at (0,0);
\node[marble,diamond,green] (1x1x2) at (0.7,0) {};
\node[marble,diamond,green] (1x2x2) at (1.5,0) {};
\node[complete,rotate=-21] (1x3x2) at (2,0) {};
\end{scope}
\begin{scope}[xshift=4cm,rotate=-25]
\draw [time] (0,0) -- (2.5,0);
\coordinate (2x2) at (0,0);
\node[marble,diamond,blue] (1x1x2) at (0.7,0) {};
\node[marble,diamond,blue] (1x2x2) at (1.5,0) {};
\node[complete,rotate=-21] (1x3x2) at (2,0) {};
\end{scope}
\node[complete] (3x2) at (6.5,0) {};
\\
};
\draw [fdash] (0x0) -- (0x0|-op.north);
\draw [fdash] (1x0) -- (1x0|-op.north);
\draw [fdash] (2x0) -- (2x0|-op.north);
\draw [fdash] (3x0) -- (3x0|-op.north);
\draw [rdash] (0x2) -- (0x2|-op.south);
\draw [rdash] (1x2) -- (1x2|-op.south);
\draw [rdash] (2x2) -- (2x2|-op.south);
\draw [rdash] (3x2) -- (3x2|-op.south);
\end{tikzpicture}
\end{document}