summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/causets/causet_tikz_example1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/causets/causet_tikz_example1.tex')
-rw-r--r--graphics/pgf/contrib/causets/causet_tikz_example1.tex17
1 files changed, 11 insertions, 6 deletions
diff --git a/graphics/pgf/contrib/causets/causet_tikz_example1.tex b/graphics/pgf/contrib/causets/causet_tikz_example1.tex
index 7be620b9a2..dfbe3abf76 100644
--- a/graphics/pgf/contrib/causets/causet_tikz_example1.tex
+++ b/graphics/pgf/contrib/causets/causet_tikz_example1.tex
@@ -1,18 +1,23 @@
\documentclass[tikz]{standalone}
-\usepackage[permutation,huge,neon]{causets}
+\usepackage[permutation,larger,neon]{causets}
\usetikzlibrary{fit,shapes.geometric}
\begin{document}
\begin{tikzpicture}
+ % Create causet, shifted in x- and y-direction:
\begin{scope}[xshift=3cm, yshift=-1cm]
+ \tikzcausetsset{offset=-2}
\drawpcauset{5,2,7,3,6,1,4}
\draw[red, double] (0, 0) circle[radius=0.1];
\end{scope}
- \node[draw=blue, inner sep=1pt, thick, ellipse, fit=(E4) (E6) (E7)] (Finf) {};
- \node[draw=blue] (FinfLabel) at (6.5, -0.5) {future infinity};
- \node[draw=red] (centerLabel) at (0.5, -0.5) {center};
- \node[draw=green!50!black] (myEventLabel) at (5.5, -2.5) {event (E2)};
+ % Circumscribe the future infinity:
+ \node[draw=blue, inner sep=1pt, thick, ellipse, fit=(E2) (E4) (E5)] (Finf) {};
+ % Add labels on top:
+ \node[draw=blue, right, align=right] (FinfLabel) at (4.8, -0.5) {future infinity / \\ maximal events};
+ \node[draw=red] (centerLabel) at (0.5, -0.5) {centre};
+ \node[draw=green!50!black] (myEventLabel) at (5.5, -2.5) {event (E0)};
+ % Draw arrows from the labels to the references:
\draw[ultra thick, blue, ->] (FinfLabel) -- (Finf);
\draw[ultra thick, red, ->] (centerLabel) -- (3, -1);
- \draw[ultra thick, green!50!black, ->] (myEventLabel) -- (E2);
+ \draw[ultra thick, green!50!black, ->] (myEventLabel) -- (E0);
\end{tikzpicture}
\end{document}