diff --git a/diagram_paths.tex b/diagram_paths.tex index 469eafd8d7365e427007ace9bba880256aff1f47..923ba5ba794e60769ae8df9489ea21ed6c29a7f1 100644 --- a/diagram_paths.tex +++ b/diagram_paths.tex @@ -15,32 +15,32 @@ \begin{document} \begin{tikzpicture} - \draw[step=1cm,gray,dotted] (-0.9,-0.9) grid (8.9,6.9); + \def\height{4}; + \draw[step=1cm,gray,dotted] (-0.9,-0.9) grid (8.9,\height+0.9); \foreach \x in {0,...,7} { - \foreach \y in {0,...,5} { - \draw[->] (\x,\y) -- (\x+0.9,\y); - \draw[->] (\x,\y) -- (\x,\y+0.9); + \foreach \y in {1,...,\height} { + \draw[->] (\x,\y-1) -- (\x+0.9,\y-1); + \draw[->] (\x,\y-1) -- (\x,\y-1+0.9); } - \draw [->] (\x,6) -- (\x+0.9,6); + \draw [->] (\x,\height) -- (\x+0.9,\height); } - \foreach \y in {0,...,5} - \draw [->] (8,\y) -- (8,\y+0.9); - + \foreach \y in {1,...,\height} %somehow the loop cant go to '\height-1' + \draw [->] (8,\y-1) -- (8,\y-1+0.9); % so we fix it like this with '\y-1' \draw(-0.1,-0.4) node {$b_1\land b_2$}; \draw(8,-0.4) node {$\mathbf{1} \land b_2$}; - \draw (-0.2,6.3) node {$b_1\land\mathbf{1}$}; - \draw (8.2,6.3) node {$\mathbf{1}$}; + \draw (-0.2,\height+0.3) node {$b_1\land\mathbf{1}$}; + \draw (8.2,\height+0.3) node {$\mathbf{1}$}; \draw (4,-0.5) node {$\to$ steps of $\xi_1$}; - \node[rotate=90,anchor=south,xshift=3cm,yshift=0.5cm] {$\to$ steps of $\xi_2$}; + \node[rotate=90,anchor=south,xshift=2cm,yshift=0.5cm] {$\to$ steps of $\xi_2$}; \draw[fill,red] (0,0) circle (0.08); \draw[fill,red] (8,0) circle (0.05); - \draw[fill,red] (0,6) circle (0.05); - \draw[fill,red] (8,6) circle (0.08); + \draw[fill,red] (0,\height) circle (0.05); + \draw[fill,red] (8,\height) circle (0.08); - \def\x{5}; + \def\x{6}; \def\y{3}; \draw[fill,black] (\x,\y) circle (0.07); \draw[fill=white,draw=black] (\x+0.25,\y-0.26) rectangle +(0.5,0.5); @@ -49,7 +49,7 @@ \draw (\x,\y+0.5) node {$1-p_j$}; \def\x{2}; - \def\y{2}; + \def\y{1}; \draw[fill,black] (\x,\y) circle (0.07); \draw[fill=white,draw=black] (\x+0.25,\y-0.26) rectangle +(0.5,0.5); \draw[fill=white,draw=black] (\x-0.50,\y+0.26) rectangle +(1.0,0.5); @@ -63,7 +63,7 @@ \draw (\x,\y+0.5) node {$1$}; \def\x{3}; - \def\y{6}; + \def\y{\height}; \draw[fill,black] (\x,\y) circle (0.07); \draw[fill=white,draw=black] (\x+0.25,\y-0.25) rectangle +(0.5,0.5); \draw (\x+0.5,\y) node {$1$};