流程图 Latex !两个节点的定位

流程图 Latex !两个节点的定位

我需要将两个框 N9 和 N10 拆分到 N8 下方并并排放置。非常感谢您的帮助

\begin{figure}[h]
\centering
\tikzstyle{startstop} = [rectangle, minimum width=3cm, minimum height=1cm,text centered, draw=black]
\tikzstyle{io} = [rectangle, minimum width=3cm, minimum height=1cm,text centered, draw=black]
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black]
\tikzstyle{decision} = [diamond,text centered, draw=black]
\tikzstyle{arrow} = [thick,->,>=stealth]
\tikzstyle{line} = [draw, -latex']
\usetikzlibrary{shapes.geometric, arrows}

\begin{tikzpicture}[node distance=1.5cm]

\node  [startstop] (start) {N1};
\node  [io, below of=start] (b2) {N2};
\node  [io, below of=b2](b3) {N3};
\node  [io, below of=b3, yshift=-0.5cm] (b4) {N5};
\node [io, below of=b4, yshift=-0.5cm](b5)  {N6};
\node (b6) [io, below of=b5, yshift=-0.5cm] {N7};
\node (b7) [io, below of=b6, yshift=-2.5] {N8};
\node (b8) [io,  below of=b7, xshift=-0.5] {N9};
\node (b9) [startstop, below of=b8] {N10};

\path [line] (start) -- (b2);
\path [line] (b2) -- (b3);
\path [line] (b3) -- (b4);
\path [line] (b4) -- (b5);
\path [line] (b5) -- (b6);
\path [line] (b6) -- (b7);
\path [line] (b7) -- (b8);
\path [line] (b8) -- (b9);
\path [line] (b9.east) node [anchor =south west] {} --+(3cm,0)  |-(b4);
 \end{tikzpicture}
\caption[MD algorithm]{DFT algorithm.}
\label{DFTalgo}
 \end{figure}

答案1

我不知道我是否正确理解了您想要实现的目标。这有帮助吗?

\documentclass[tikz]{standalone}

\begin{document}
\centering
\tikzstyle{startstop} = [rectangle, minimum width=3cm, minimum height=1cm,text centered, draw=black]
\tikzstyle{io} = [rectangle, minimum width=3cm, minimum height=1cm,text centered, draw=black]
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black]
\tikzstyle{decision} = [diamond,text centered, draw=black]
\tikzstyle{arrow} = [thick,->,>=stealth]
\tikzstyle{line} = [draw, -latex']
\usetikzlibrary{shapes.geometric, arrows}

\begin{tikzpicture}[node distance=1.5cm]

\node  [startstop] (start) {N1};
\node  [io, below of=start] (b2) {N2};
\node  [io, below of=b2](b3) {N3};
\node  [io, below of=b3, yshift=-0.5cm] (b4) {N5};
\node [io, below of=b4, yshift=-0.5cm](b5)  {N6};
\node (b6) [io, below of=b5, yshift=-0.5cm] {N7};
\node (b7) [io, below of=b6, yshift=-2.5] {N8};
\node (b8) [io,  below of=b7, xshift=-50] {N9};
\node (b9) [startstop, below of=b7, xshift=50] {N10};

\path [line] (start) -- (b2);
\path [line] (b2) -- (b3);
\path [line] (b3) -- (b4);
\path [line] (b4) -- (b5);
\path [line] (b5) -- (b6);
\path [line] (b6) -- (b7);
\path [line] (b7) -- (b8);
\path [line] (b7) -- (b9);
\path [line] (b9.east) node [anchor =south west] {} --+(1cm,0)  |-(b4);
\end{tikzpicture}
\end{document}

N9 与 N10 并列

相关内容