3

I'm using TikZ to draw a flowdiagram. How to I add a curved arrow from the fourth box to the second one, where the arrow should start from the left side of the box 4?enter image description here

\begin{figure}
\centering
\begin{tikzpicture}[node distance=2cm]
\node (start) [startstop] {Start with a set of size $1$};
\node (in1) [startstop, below of=start] {Cycle over all considered input series};
 \node (in2) [startstop, below of=in1] {Select the input variable that resulted in the best RMS};
 \node (in3) [startstop, below of=in2] {Add the selected input variable series to the previous set};
 \draw [arrow] (start) -- (in1);
 \draw [arrow] (in1) -- (in2);
 \draw [arrow] (in2) -- (in3);
 \end{tikzpicture}
 \caption{Flow diagram showing the full steps used to construct the signal function.} 
 \label{fig:diagrama2}
 \end{figure}

1 Answer 1

1

More than with loop back -- it is easy to draw, especialy if you inspired from ideas of some LateX experts here on Se -- I direct my effort to simpIlfy your code:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{chains,positioning}

    \begin{document}
\begin{figure}
    \centering
    \begin{tikzpicture}[
                > = latex,
      start chain = going below,
every join/.style = {->,thick},
every node/.style = {draw, rounded corners, fill=red!30,
                     join, on chain},
                        ]
\node (start) {Start with a set of size $1$};
\node (in1)   {Cycle over all considered input series};
\node (in2)   {Select the input variable that resulted in the best RMS};
\node (in3)   {Add the selected input variable series to the previous set};
%
\draw[->,thick,rounded corners=3mm]% loop back from 4th block to the 2nd 
     (in3.west) -- + (-5mm,0mm)% intermediate coordinate, 
                               % 5mm left from the west border of 4th block 
                |- (in1.west);
 \end{tikzpicture}
 \caption{Flow diagram showing the full steps used to construct the signal function.}
 \label{fig:diagrama2}
\end{figure}
    \end{document}

enter image description here

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .