von Bartman » So 26. Feb 2017, 15:04
DEVV hat geschrieben:Und wie schaffe ich es etwas zwischen den puffer.png und den ersten Knoten zu schreiben (also auch an der Verbindung). Ich schaffe das nicht bei allen...
Bei der Kante von dem Bild zu 2. funktioniert es, bei der Kante von dem Bild zu 1. gibt es einen Fehler:
Abgesehen von der Fehlermeldung durch die Leerzeile, wird Deine Beschriftung zwischen der Puffer-Abbildung und 1. angezeigt.
\documentclass[tikz, border=5pt]{standalone}
\begin{document}
\begin{tikzpicture}[sibling distance=8em]
\tikzset{node1/.style={rectangle,rounded corners,draw=black, align=center, top color=white, bottom color=gray!20}}
\node[node1](ub) {9. output}[grow'=up]
child { node[node1] {4. str\_receiver}
edge from parent node[left=2mm] {$1882,563*10^1$}
} ;
\node[node1][above=2em](ob) at (ub-1.north) {7. sender}[grow'=up]
child { node[node1] {5. bin\_str\_join}
child{node[node1]{3. bin\_str\_join}
child{node[node1]{2. rel\_source}
child{node{\includegraphics[width=4em]{example-image}}
edge from parent node[left=2mm] {$\mathbf{5579,215*10^4}$}
}
}
child{node[node1]{0. str\_source}
child{node{\includegraphics[width=4em]{example-image}}}
edge from parent node[right=2mm] {$8600,473$}
}
edge from parent node[left=2mm] {$3403,057$}
}
child{
child[missing]
child{node[node1]{1. rel\_source}
child{node{\includegraphics[width=4em]{example-image}}
edge from parent node[right] {$\mathbf{2171,938*10^4}$}
}
% Die Leerzeile erzeugt ohne Kommentarzeichen eine Fehlermeldung
}}
edge from parent node[left=2mm]{$1627,428$}
};
\path[<->,very thick,shorten <=.5ex,shorten >=.5ex](ub-1)
edge node[pos=.5,right]{\includegraphics[width=3.5em]{example-image}}
node[pos=.5,left]{$\mathbf{7973,254*10^4}$}(ob);
\path([xshift=2.75cm]ob-1-2.east)--++(1em,0)coordinate(h);
\draw[|-|,very thick]
(ob.south-|h)
-- node[xshift=.5cm][right]{Kernel}
(ob-1-1-1-1.north-|h)
;
\draw[|-|,very thick]
(ub-1.north-|h)
-- node[xshift=.5cm][right]{User}
(ub.south-|h)
;
\end{tikzpicture}
\end{document}
[quote="DEVV"]Und wie schaffe ich es etwas zwischen den puffer.png und den ersten Knoten zu schreiben (also auch an der Verbindung). Ich schaffe das nicht bei allen...
Bei der Kante von dem Bild zu 2. funktioniert es, bei der Kante von dem Bild zu 1. gibt es einen Fehler:[/quote]
Abgesehen von der Fehlermeldung durch die Leerzeile, wird Deine Beschriftung zwischen der Puffer-Abbildung und 1. angezeigt.
[code]\documentclass[tikz, border=5pt]{standalone}
\begin{document}
\begin{tikzpicture}[sibling distance=8em]
\tikzset{node1/.style={rectangle,rounded corners,draw=black, align=center, top color=white, bottom color=gray!20}}
\node[node1](ub) {9. output}[grow'=up]
child { node[node1] {4. str\_receiver}
edge from parent node[left=2mm] {$1882,563*10^1$}
} ;
\node[node1][above=2em](ob) at (ub-1.north) {7. sender}[grow'=up]
child { node[node1] {5. bin\_str\_join}
child{node[node1]{3. bin\_str\_join}
child{node[node1]{2. rel\_source}
child{node{\includegraphics[width=4em]{example-image}}
edge from parent node[left=2mm] {$\mathbf{5579,215*10^4}$}
}
}
child{node[node1]{0. str\_source}
child{node{\includegraphics[width=4em]{example-image}}}
edge from parent node[right=2mm] {$8600,473$}
}
edge from parent node[left=2mm] {$3403,057$}
}
child{
child[missing]
child{node[node1]{1. rel\_source}
child{node{\includegraphics[width=4em]{example-image}}
edge from parent node[right] {$\mathbf{2171,938*10^4}$}
}
% Die Leerzeile erzeugt ohne Kommentarzeichen eine Fehlermeldung
}}
edge from parent node[left=2mm]{$1627,428$}
};
\path[<->,very thick,shorten <=.5ex,shorten >=.5ex](ub-1)
edge node[pos=.5,right]{\includegraphics[width=3.5em]{example-image}}
node[pos=.5,left]{$\mathbf{7973,254*10^4}$}(ob);
\path([xshift=2.75cm]ob-1-2.east)--++(1em,0)coordinate(h);
\draw[|-|,very thick]
(ob.south-|h)
-- node[xshift=.5cm][right]{Kernel}
(ob-1-1-1-1.north-|h)
;
\draw[|-|,very thick]
(ub-1.north-|h)
-- node[xshift=.5cm][right]{User}
(ub.south-|h)
;
\end{tikzpicture}
\end{document}[/code]