Examples of PGFPlots package for LaTeX
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.0 KiB

  1. \documentclass[border=10pt]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{shapes,shadows,arrows}
  4. \tikzstyle{startnode} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=gray!50]
  5. \tikzstyle{corenode} = [rectangle, rounded corners, minimum width=3cm, minimum
  6. height=1cm, text centered, draw=black, fill=gray!10]
  7. \tikzstyle{endnode} = [diamond, rounded corners, minimum height=1cm, text centered, draw=black, fill=red!30]
  8. \tikzstyle{endnode2} = [diamond, text centered, draw=black, fill=red!30]
  9. \begin{document}
  10. \begin{tikzpicture}[node distance=2cm]
  11. %create all of the nodes
  12. \node (start) [startnode] {Start};
  13. \node (step1) [corenode, below of=start] {Step 1};
  14. \node (in) [corenode, right of=start, node distance=5cm] {In};
  15. \node (end)[endnode2, below of =step1]{End};
  16. \node (out) [below of=end, node distance=2cm] {out};
  17. \draw[->] (start) -- (step1);
  18. \draw[->] (step1) -- (end);
  19. \draw[->] (in) |- (step1);
  20. \draw [->] (end) -- (out);
  21. \end{tikzpicture}
  22. \end{document}