2

how do I placed this arrow in this manner:

enter image description here

\tikzstyle{inpro}=[circle, thick, draw=yellow!50, fill=yellow!20, minimum size=3mm]
\tikzstyle{mater} = [rectangle, thick, draw=green!50, fill=green!20, minimum width=2.25cm, minimum height=.5cm, text centered]
\tikzstyle{react} = [rectangle, thick, draw=cyan!50, fill=cyan!20, minimum width=2cm, minimum height=2cm, text centered, text width=2cm]


\begin{tikzpicture}[node distance=2.5cm]
node font=\tiny;
\node(mater)[mater]{bubble};
\node(inpro1)[inpro, below=1cm of mater]{bubble};
\node(inpro2)[inpro, right of=inpro1]{bubble};
\node(dummy)[below=1cm of inpro1, yshift=2cm]{};
\node(dummy2)[below of=dummy, yshift=1cm]{};
\node(mater2)[mater, below of=dummy]{bubble};
\node(react1)[react, below right=1cm and 3cm of mater]{bubble};


\draw[->, ultra thick, draw=orange!50](mater)--(inpro1);
\draw[->, ultra thick, draw=orange!50](inpro1)--(inpro2);
\draw[->, ultra thick, draw=orange!50](inpro2)--(react1);
\draw[->, ultra thick, draw=orange!50, dashed](mater2)--(dummy2)|-(react1);



\end{tikzpicture}
\caption{The Proposed Process}
\end{figure}

\end{tikzpicture}
  • 1
    Please complete your example so that it can be compiled directly. – Ulrike Fischer Dec 4 '14 at 13:29
4

You are using /mixing the positioning syntax : it should be like below = of consistently (not below of =). Also, it is better to use tikzset over tikzstyle.

With your code:

\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}

\tikzstyle{inpro}=[circle, thick, draw=yellow!50, fill=yellow!20, minimum size=3mm]
\tikzstyle{mater} = [rectangle, thick, draw=green!50, fill=green!20, minimum width=2.25cm, minimum height=.5cm, text centered]
\tikzstyle{react} = [rectangle, thick, draw=cyan!50, fill=cyan!20, minimum width=2cm, minimum height=2cm, text centered, text width=2cm]

\begin{document}
\begin{tikzpicture}[node distance=2.5cm]
node font=\tiny;
\node(mater)[mater]{bubble1};
\node(inpro1)[inpro, below=1cm of mater]{bubble2};
\node(inpro2)[inpro, right = of inpro1]{bubble3};
\node(dummy)[below=1cm of inpro1, yshift=2cm]{};
\node(dummy2)[below = of dummy, yshift=1cm]{};
\node(mater2)[mater, below = of dummy]{bubble4};
\node(react1)[react, below right=1.2cm and 4cm of mater]{bubble5};


\draw[->, ultra thick, draw=orange!50](mater)--(inpro1);
\draw[->, ultra thick, draw=orange!50](inpro1)--(inpro2);
\draw[->, ultra thick, draw=orange!50](inpro2)--(react1.west|-inpro2);  %%% here
\draw[->, ultra thick, draw=orange!50, dashed](mater2)--(dummy2)|-(react1);

\coordinate (zz) at ([yshift=8mm]mater2.north);
\draw[->, ultra thick, draw=orange!50](zz)--(react1.west|-zz);


\end{tikzpicture}

\end{document}

Your code improved:

\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}

\tikzset{inpro/.style={circle, thick, draw=yellow!50, fill=yellow!20, minimum size=3mm},
        mater/.style = {rectangle, thick, draw=green!50, fill=green!20, minimum width=2.25cm,
             minimum height=.5cm, text centered},
        react/.style = {rectangle, thick, draw=cyan!50, fill=cyan!20, minimum width=2cm,
             minimum height=2cm, text centered, text width=2cm}
}

\begin{document}
\begin{tikzpicture}[node distance=2.5cm,font=\tiny]
\node(mater)[mater]{bubble1};
\node(inpro1)[inpro, below=1cm of mater]{bubble2};
\node(inpro2)[inpro, right = of inpro1]{bubble3};
\node(mater2)[mater, below = 2cm of inpro1]{bubble4};
\node(react1)[react, below right=1.2cm and 4cm of mater]{bubble5};


\draw[->, ultra thick, draw=orange!50](mater)--(inpro1);
\draw[->, ultra thick, draw=orange!50](inpro1)--(inpro2);
\draw[->, ultra thick, draw=orange!50](inpro2)--(react1.west|-inpro2);  %%% here
\draw[->, ultra thick, draw=orange!50, dashed](mater2.north)|-([yshift=-2mm]react1.west);

\draw[->, ultra thick, draw=orange!50](mater2.north|-react1.210)--(react1.210);

\end{tikzpicture}

\end{document}

enter image description here

  • I think your a bot. You answer so fast.. Thank you.. – Ricardo Veloz Jr Dec 4 '14 at 13:35
  • 1
    @RicardoVelozJr I am a tikz bot! – user11232 Dec 4 '14 at 13:45
  • ahahaha for a moment I really thought you are a bot. – Ricardo Veloz Jr Dec 4 '14 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.