如何让 Tikz 图片不占满整页?

如何让 Tikz 图片不占满整页?

无论我的图片有多小,它都会显示在新页面的中心。如何让它“位于”文本的“上方和下方”?

\begin{figure}
\centering
\begin{tikzpicture}[node distance=2cm]
\node (start0) [startstop] {Start};
\node (start) [process, below of=start0] {Start};
\node (dec1) [decision, below of=start, yshift=-2cm] {Evaluation completed?};
\node (yes) [startstop, below of=dec1, yshift=-2cm] {Evaluation results};
\node (no) [process, right of=dec1, xshift=3cm, yshift=3cm] {Continue};
\draw [arrow] (start0) -- (start);
\draw [arrow] (start) -- (dec1);
\draw [arrow] (dec1) -- node[anchor=east] {yes} (yes);
\draw [arrow] (dec1) -| node[anchor=west] {no} (no);
\draw [arrow] (no) -| (dec1);
\end{tikzpicture}
\caption {Evaluation cycle of a long computation}
\label{fig:evaluationCycle}
\end{figure}

相关内容