| 1 |
\documentclass[tikz]{standalone} |
| 2 |
\usepackage[permutation,larger,neon]{causets} |
| 3 |
\usetikzlibrary{fit,shapes.geometric} |
| 4 |
\begin{document} |
| 5 |
\begin{tikzpicture} |
| 6 |
% Create causet, shifted in x- and y-direction: |
| 7 |
\begin{scope}[xshift=3cm, yshift=-1cm] |
| 8 |
\tikzcausetsset{offset=-2} |
| 9 |
\drawpcauset{5,2,7,3,6,1,4} |
| 10 |
\draw[red, double] (0, 0) circle[radius=0.1]; |
| 11 |
\end{scope} |
| 12 |
% Mark the maximal elements (future infinity): |
| 13 |
\node[draw=blue, inner sep=1pt, thick, ellipse, fit=(E2) (E4) (E5)] (Finf) {}; |
| 14 |
% Add labels on top: |
| 15 |
\node[draw=blue, right, align=right] (FinfLabel) at (4.8, -0.5) {maximal events / \\ (future infinity)}; |
| 16 |
\node[draw=red] (centerLabel) at (0.5, -0.5) {centre}; |
| 17 |
\node[draw=green!50!black] (myEventLabel) at (5.5, -2.5) {event (E0)}; |
| 18 |
% Draw arrows from the labels to the references: |
| 19 |
\draw[ultra thick, blue, ->] (FinfLabel) -- (Finf); |
| 20 |
\draw[ultra thick, red, ->] (centerLabel) -- (3, -1); % centre was shifted by the scope |
| 21 |
\draw[ultra thick, green!50!black, ->] (myEventLabel) -- (E0); |
| 22 |
\end{tikzpicture} |
| 23 |
\end{document} |