Graphics, Figures & TablesDiagram flow

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Estabilo
Posts: 12
Joined: Tue May 12, 2015 11:08 am

Diagram flow

Post by Estabilo »

Someone would know create this TikZ in latex ?

Only I know do this:

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[spanish]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{PIC}


\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}

\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=red!30]

\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30]

\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]

\tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]

\tikzstyle{arrow} = [thick,->,>=stealth]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}


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

\node (start) [startstop] {Start};



\node (in1) [io, below of=start] {Input};
\node (pro1) [process, below of=in1] {Process 1};
\node (dec1) [decision, below of=pro1, yshift=-0.5cm] {Decision 1};

\node (pro2a) [process, below of=dec1, yshift=-0.5cm] {Process 2a};
\node (pro2b) [process, right of=dec1, xshift=2cm] {Process 2b dfgdf gfdg fdg fdg fd gdf g df g};
\node (out1) [io, below of=pro2a] {Output};
\node (stop) [startstop, below of=out1] {Stop};

\draw [arrow] (start) -- (in1);
\draw [arrow] (in1) -- (pro1);
\draw [arrow] (pro1) -- (dec1);
\draw [arrow] (dec1) -- (pro2a);
\draw [arrow] (dec1) -- node [anchor=south]{no} (pro2b);

\draw [arrow] (pro2b) |- (start);

\draw [arrow] (dec1)-| ([xshift=-0.25cm]pro1.south west) |- (in1);



\end{tikzpicture}

\end{document}

And I need this: image


Thanks!
Attachments
Diagram flow that I need
Diagram flow that I need
engrande.png (51.06 KiB) Viewed 2785 times
Last edited by Estabilo on Wed May 20, 2015 5:57 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Re: Diagram flow

Post by Stefan Kottwitz »

Hi!

What exactly is the problem? Regarding which part of the drawing you need help with?

Stefan
LaTeX.org admin
Estabilo
Posts: 12
Joined: Tue May 12, 2015 11:08 am

Diagram flow

Post by Estabilo »

Sorry, I have difficulties to explain my problem in english.


I need reduce the downsize of this diagram

In order word
do the size of the diagram more little.

My diagram:

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[spanish]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{PIC}


\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}

\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=blue!30]

\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=yellow!30]

\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]

\tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]

\tikzstyle{arrow} = [thick,->,>=stealth] 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}


\begin{tikzpicture}[node distance=2cm]
%NOMBRE IDENTIFICATIVO//TIPO DE RECTANGULO // ABAJO DE QUE // NOMBRE DENTRO

\node (start) [startstop] {Start}; 
\node (pro1) [process, below of=start] {Process 1};

\node (dec0) [decision, below of=pro1, yshift=-0.5cm] {Decision 1};

\node (dec1) [decision, below of=dec0, yshift=-1.5cm] {Decision 1};
\node (pro2a)[process, below of=dec1, yshift=-0.5cm] {Process 2a};%%ABAJO DE DECISION
\node (pro2b)[process, right of=dec1, xshift=2cm] {Process 2b }; %%AL LADO DE DECICION

\node (in1) [io, below of=pro2a] {Input1};

\node (in2) [io, below of=in1] {Input2};

\node (dec3) [decision, below of=in2, yshift=-0.45cm] {Decision 3};
\node (dec4) [decision, right of=dec3, xshift=1.5cm,] {Decision 4 }; %%AL LADO DE DECICION

\node (dec4) [decision, below of=dec3, yshift=-0.9cm] {Decision 4};
\node (dec5) [decision, right of=dec4, xshift=1.5cm,] {Decision 5 }; %%AL LADO DE DECICION

\node (stop) [startstop, below of=dec4,yshift=-0.8cm] {LCD ERROR};




\end{tikzpicture}

\end{document}

THANKS!
Post Reply