von Bizi » Sa 19. Mai 2018, 09:18
Hi,
Ich habe mit Tikz ein einfaches Ablaufdiagramm gemacht. Um caption und Label hinzuzufügen, habe ich dieses Tikz-Diagramm in eine Figure-Umgebung eingebunden.
Da habe ich jetzt leider das Problem, dass das Diagramm nicht in der richtigen Höhe dargestellt wird. Die einzelnen Elemente werden einfach zusammengeschoben:
\tikzstyle{decision} = [diamond, draw, fill=blue!20,
text width=11em, text badly centered, node distance=2.5cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=gray!20,minimum width=22em,
text width=21em, text centered, rounded corners, minimum height=4em,font=\bfseries]
\tikzstyle{line} = [draw, very thick, color=black!50, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=2.5cm,
minimum height=2em]
\tikzstyle{block_init} = [rectangle, draw, fill=white!20,minimum width=22em,
text width=21em, text centered, rounded corners, minimum height=4em,font=\bfseries]
\begin{figure}[H]
\begin{tikzpicture}
% Place nodes
\node [block_init] (init) {xxxxx};
\node [block, below of=init] (identify) {yyyyyyyy};
\node [block, below of=identify] (request) {zzzzzzzzzzzz};
\node [block, below of=request] (korrektur) {uuuuuuuuuuuu};
\node [block, below of=korrektur] (Steigung) {iiiiiiiiiiiiiiiiiiiiii};
% Draw edges
\path [line] (init) -- (identify);
\path [line] (identify) -- (request);
\path [line] (request) -- (Steigung);
\end{tikzpicture}
\end{figure}
Besten Dank!
Bizi
Hi,
Ich habe mit Tikz ein einfaches Ablaufdiagramm gemacht. Um caption und Label hinzuzufügen, habe ich dieses Tikz-Diagramm in eine Figure-Umgebung eingebunden.
Da habe ich jetzt leider das Problem, dass das Diagramm nicht in der richtigen Höhe dargestellt wird. Die einzelnen Elemente werden einfach zusammengeschoben:
[code]
\tikzstyle{decision} = [diamond, draw, fill=blue!20,
text width=11em, text badly centered, node distance=2.5cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=gray!20,minimum width=22em,
text width=21em, text centered, rounded corners, minimum height=4em,font=\bfseries]
\tikzstyle{line} = [draw, very thick, color=black!50, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=2.5cm,
minimum height=2em]
\tikzstyle{block_init} = [rectangle, draw, fill=white!20,minimum width=22em,
text width=21em, text centered, rounded corners, minimum height=4em,font=\bfseries]
\begin{figure}[H]
\begin{tikzpicture}
% Place nodes
\node [block_init] (init) {xxxxx};
\node [block, below of=init] (identify) {yyyyyyyy};
\node [block, below of=identify] (request) {zzzzzzzzzzzz};
\node [block, below of=request] (korrektur) {uuuuuuuuuuuu};
\node [block, below of=korrektur] (Steigung) {iiiiiiiiiiiiiiiiiiiiii};
% Draw edges
\path [line] (init) -- (identify);
\path [line] (identify) -- (request);
\path [line] (request) -- (Steigung);
\end{tikzpicture}
\end{figure}
[/code]
Besten Dank!
Bizi