具有多个块组的水平流程图

具有多个块组的水平流程图

通缉

我想绘制一个像图中所示的水平流程图。我不知道如何添加指向一个元素的附加块组(或范围?)small_label。以下是我的代码:

\begin{tikzpicture}[node distance = 5mm and 7mm, start chain = going right, block/.style = {draw, align=center, font=\linespread{0.8}\scriptsize}, small_label/.style = {align=center, font=\linespread{0.8}\scriptsize}]
    \begin{scope}[every node/.append style={on chain, join=by -Stealth}]
        \node (n1) [block]  {A \\ 1};
        \node (n2) [block]  {A \\ 2};
        \node (n4) [small_label] {Result};
    \end{scope}

\end{tikzpicture}

结果

答案1

我是个新手,但我想提高自己的技能并帮助社区,所以我尝试了一些方法,也许更有经验的用户会帮助我们。我知道这不是你想要的,但也许你可以从中得到启发:

 \documentclass{article}
 \usepackage{tikz}
 \usetikzlibrary{shapes,arrows,positioning}

 \begin{figure}[!h]
 \begin{center}
 \begin{tikzpicture}[auto,>=latex',every node/.append style={font=\scriptsize}]

    \node [input, name=input] {};
    \node [block, right=of input] (a1) {A\\1};
    \node [block, right=of a1] (a2) {A\\2};
    \node [block, below=of a2] (a3) {A\\3};
    \node [block, below=of a1] (a4) {A\\4};
    \node [block, below=of a3] (a5) {A\\5};
    \node [block, below=of a4] (a6) {A\\6};
    \node [block, below=of a5] (a7) {A\\7};
    \node [output, right=of a3] (result) {Result};

    \draw [->] (a1) -- (a2);
    \draw [->] (a1) -- (a3);
    \draw [->] (a4) -- (a5);
    \draw [->] (a6) -- (a7);
    \draw [->] (a2) -- (result) node[anchor=west] {Result};
    \draw [->] (a3) -- (result) ;
    \draw [->] (a5) -- (result) ;
    \draw [->] (a7) -- (result) ;

\end{tikzpicture}
\end{center}
\end{figure}
\end{document}

在此处输入图片描述

相关内容