乳胶流程图线交叉线

时间:2015-04-30 09:15:52

标签: latex flowchart tikz

我正在构建一个看起来几乎像我想要的流程图。我想修改的最后一个细节涉及彼此相交的两条线。

这是我的代码:

\tikzstyle{block1}    = [rectangle, rounded corners,  minimum width=3cm, minimum height=1cm, text centered, draw, fill=blue!20, text width=6cm]
\tikzstyle{block2}    = [rectangle, rounded corners,  minimum width=3cm, minimum height=1cm, text centered, draw, fill=blue!20, text width=3cm]
\tikzstyle{decision}  = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw, fill=blue!20, text width=2cm] % node distance=3cm, inner sep=0pt
\tikzstyle{line}      = [draw, -latex']

\begin{figure}[ht]
    \begin{center}
        \begin{tikzpicture}[node distance = 2cm, auto]
        % Place nodes
            \node [block1] (1) {\textbf{\small Study of basic factors}\\    \footnotesize Plant characteristics, mechanisms of nuclide production and waste streams};
            \node [block1, below of=1, node distance=1.8cm]  (2)  {\textbf{\small Development of sampling plan}};
            \node [block1, below of=2, node distance=1.7cm]  (3)  {\textbf{\small Sampling and analysis}};
            \node [block1, below of=3, node distance=2cm]  (4)  {\textbf{\small Observation and evaluation of nuclide activity database}\\  \footnotesize Selecting key nuclide and verifying correlation between DTM nuclides and KN};
            \node [decision, below of=4, node distance=3.2cm]  (5)  {\textbf{\small Applicability of SF method}};
            \node [block2, right of=5, node distance=4cm] (6)  {\textbf{\small Other methods}\\ \footnotesize Mean activity, ...};
            \node [block2, left of=5, node distance=4cm]  (7)  {\textbf{\small Applying statistics}};
            \node [block2, below of=5, node distance=3.5cm] (8) {\textbf{\small SF classifications}\\ \footnotesize Unification and classification of groups};
            \node [block2, left of=8, node distance=4cm] (9) {\textbf{\small Reference}};
            \node [block2, below of=8, node distance=2cm] (10) {\textbf{Determination of SF}};
            \node [block2, left of=10, node distance=4cm] (11) {\textbf{Applying statistics}};
            \node [block2, right of=10, node distance=4cm] (12) {\textbf{Assess KN activity}\\ Dose rate and $\gamma$-spectra};
            \node [decision, below of=10, node distance=2.5cm] (13) {\textbf{Calculation}};
            \node [block1, below of=13, node distance=2.5cm] (14) {\textbf{Determining the activity of DTM}};

        % Draw edges
            \path [line] (1) -- (2);
            \path [line] (2) -- (3);
            \path [line] (3) -- (4);
            \path [line] (4) -- (5);
            \path [line] (4) -| ([xshift=1cm, yshift=0cm]6.east) |- (12);
            \path [line] (7) -- (5);
            \path [line] (5) -- (6);
            \path [line] (6) -| ([xshift=2cm, yshift=0cm]6.east) |-(14);
            \path [line] (5) -- (8);
            \path [line] (9) -- (8);
            \path [line] (8) -- (10);
            \path [line] (11) -- (10);
            \path [line] (10) -- (13);
            \path [line] (12) |- (13);
            \path [line] (13) -- (14);
        \end{tikzpicture}
        \caption{Complete characterization process \cite{iso21238}.}
        \label{fig_1.1}
    \end{center}
\end{figure}

在这里你可以找到它的样子:

flowchart

我想要的是添加弧线以避免2条线相互交叉;特别是我希望从块中出现一个弧线#34;其他方法"阻止"确定DTM的活动"。

非常感谢你的帮助。

干杯,

比亚焦

1 个答案:

答案 0 :(得分:0)

诀窍是(1)计算path1和path2的交点S,(2)在它周围定义一个圆圈,之后你将放置弧线,(3)正常绘制你的路径2除外落入圆圈的部分,以及(4)绘制圆弧。

您需要两个tikz库 calc 交叉点

No;Answer 1;Answer 2;Answer 3;Answer 4;Answer 5;Adv car 1_1;Adv car 1_2;Adv car 1_3;Adv car 2_1;Adv car 2_2;Adv car 2_3;Adv car 3_1;Adv car 3_2;Adv car 3_3;Adv car 4_1;Adv car 4_2;Adv car 4_3;Adv Car 5_1;Adv car 5_2;Adv car 5_3
1;Ferrari;Volkswagen;Audi;Renault;Toyota;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand
2;Volkswagen;Toyota;Audi;;;Brand;Color;Price;Engine;Color;Longevity;Price;Color;Price;;;;;;
3;Toyota;Renault;;;;Manufacturer;Brand;Engine;Color;Price;Brand;;;;;;;;;
4;Audi;;;;;Engine;Color;Manufacturer;;;;;;;;;;;;
5;Volkswagen;Ferrari;Renault;;;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand;Manufacturer;Color;;;;;;
6;Renault;Toyota;;;;Brand;Engine;Color;Price;Brand;Manufacturer;;;;;;;;;
7;Audi;Renault;Ferrari;Toyota;;Brand;Color;Price;Engine;Color;Longevity;Price;Color;Price;Longevity;Brand;Manufacturer;;;
8;Toyota;;;;;Engine;Color;Longevity;;;;;;;;;;;;
9;Audi;Ferrari;Volkswagen;;;Engine;Color;Longevity;Price;Color;Price;Longevity;Brand;Manufacturer;;;;;;
10;Renault;Toyota;;;;Color;Longevity;Price;Color;Price;;;;;;;;;;
11;Ferrari;;;;;Longevity;Price;Color;;;;;;;;;;;;
12;Toyota;Volkswagen;Audi;;;Engine;Color;Manufacturer;Engine;Color;Longevity;Price;Color;Price;;;;;;
13;Audi;Volkswagen;Renault;;;Manufacturer;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand;Manufacturer;;;;;;
14;Volkswagen;;;;;Color;Longevity;Price;;;;;;;;;;;;
15;Toyota;Volkswagen;;;;Brand;Color;Price;Engine;Color;Longevity;;;;;;;;;
16;Ferrari;Renault;Volkswagen;;;Price;Engine;Color;Longevity;Price;Color;Price;Longevity;Brand;;;;;;
17;Audi;Toyota;Renault;;;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand;Manufacturer;Color;;;;;;
18;Toyota;Audi;Volkswagen;Ferrari;Audi;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand;Manufacturer;Color;Longevity;Brand
19;Ferrari;;;;;Engine;;;;;;;;;;;;;;
20;Volkswagen;;;;;Brand;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;
;;;;data2 = ['Color','Engine','Price','Manufacturer','Brand','Longevity',''];;;;;;;;;;;;;;;;

enter image description here