\documentclass[12pt,leqno,a4paper]{article} \usepackage{tikz} \usepackage{tikz-dependency} \usetikzlibrary{arrows} \usetikzlibrary{shapes} \begin{document} \begin{figure} \begin{tikzpicture}[->,>=stealth',shorten >=0.5pt,auto,node distance=3cm, thick,cloud node/.style={cloud,draw,cloud puffs=10,cloud puff arc=120, aspect=2.5, inner ysep=1em}, circle node/.style={circle,draw}, square node/.style={rectangle,draw}, diamond node/.style={diamond,draw, aspect=2}] \node[diamond node] (1000) {$i \le 1000$}; \node[square node] (ProdT1) [below of=1000] {More talented agent: Production}; \node[square node, align=left] (1CatT0) [below left of=ProdT1] {Less talented agent:\\Categorisation}; \node[square node, align=left] (1CatT1) [below right of=ProdT1] {More talented agent:\\Categorisation}; \node[draw, fit=(ProdT1) (1CatT0) (1CatT1)] (BoxIni1) {}; \path[every node/.style={font=\sffamily\small}] (1000) edge node {yes} (BoxIni1) (ProdT1) edge node {} (1CatT0) (ProdT1) edge node {} (1CatT1) (BoxIni1.south) edge node {} (1000); \end{tikzpicture} \end{figure} \end {document}
tikz: Kante kollidiert mit Knoten
tikz: Kante kollidiert mit Knoten
Ich möchte einen Pfeil vom unteren Teil der Box zum "i <= 1000"-Diamanten ziehen. Allerdings wird dieser Pfeil direkt über die Box gezogen, anstatt an dieser vorbeizuführen. Wie kann ich dies verhindern?
-
- Forum-Meister
- Beiträge: 809
- Registriert: Di 2. Okt 2012, 21:42
- Wohnort: NRW
Es mag elegantere Lösungen geben, aber:
sollte funktionieren.
Helmut
\documentclass[12pt,leqno,a4paper]{article} \usepackage{tikz} \usepackage{tikz-dependency} \usetikzlibrary{arrows} \usetikzlibrary{shapes} \begin{document} \begin{figure} \begin{tikzpicture}[->,>=stealth',shorten >=0.5pt,auto,node distance=3cm, thick,cloud node/.style={cloud,draw,cloud puffs=10,cloud puff arc=120, aspect=2.5, inner ysep=1em}, circle node/.style={circle,draw}, square node/.style={rectangle,draw}, diamond node/.style={diamond,draw, aspect=2}] \node[diamond node] (1000) {$i \le 1000$}; \node[square node] (ProdT1) [below of=1000] {More talented agent: Production}; \node[square node, align=left] (1CatT0) [below left of=ProdT1] {Less talented agent:\\Categorisation}; \node[square node, align=left] (1CatT1) [below right of=ProdT1] {More talented agent:\\Categorisation}; \node[draw, fit=(ProdT1) (1CatT0) (1CatT1)] (BoxIni1) {}; \path[every node/.style={font=\sffamily\small}] (1000) edge node {yes} (BoxIni1) (ProdT1) edge node {} (1CatT0) (ProdT1) edge node {} (1CatT1); \draw (BoxIni1.south) |- (-5,-7) |- (1000.west); \end{tikzpicture} \end{figure} \end {document}
Helmut
-
- Forum-Meister
- Beiträge: 809
- Registriert: Di 2. Okt 2012, 21:42
- Wohnort: NRW