Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. documentclass[tikz]{standalone}
  2. usetikzlibrary{shapes,arrows,calc,decorations.markings}
  3. tikzset{
  4. startstop/.style={ellipse, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=red!30},
  5. io/.style={trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30},
  6. process/.style = {rectangle, minimum width=4cm, minimum height=1cm, text centered,text width=3cm, draw=black, fill=orange!30},
  7. decision/.style = {diamond, minimum width=1.5cm, minimum height=0.5cm, text centered,text width=1.5cm,draw=black, fill=green!30},
  8. arrow/.style= {thick,>=stealth,postaction=decorate,decoration={markings,mark=at position 0.5 with {arrow{>}}}},
  9. line/.style={thick,>=stealth,postaction=decorate,decoration={markings,mark=at position 0.5 with {arrow{>}}}}}
  10. begin{document}
  11. begin{tikzpicture}[node distance=2.5cm,scale=0.75,transform shape,font=normalsize]
  12. node (start) [startstop] {Start};
  13. node (pro1) [process, below of=start] {AAA};
  14. node (pro2) [process, below of=pro1] {BBB};
  15. node (pro3) [process, below of=pro2] {CCC};
  16. node (pro4) [process, below of=pro3,xshift=-2.25cm] {DDD};
  17. node (pro4c) [process, left of=pro4,xshift=-2.5cm] {EEE};
  18. node (pro4a) [process, below of=pro3,xshift=2.25cm] {FFF};
  19. node (pro4b) [process, right of=pro4a,xshift=2.5cm] {GGG};
  20. coordinate (center) at ($(pro4)!.5!(pro4a)$);
  21. node (pro5) [process, below of=center] {HHH};
  22. node (pro6) [process, below of=pro5] {III};
  23. node (pro7) [process, below of=pro6] {JJJ};
  24. node (pro8) [process, below of=pro7] {KKK};
  25. node (pro9) [process, below of=pro8] {LLL};
  26. node (dec1) [decision, below of=pro9,yshift=-1cm] {MMM};
  27. node (pro10) [process, right of=pro3,xshift=2.5cm] {NNN};
  28. node (stop)[startstop, below of=dec1,yshift=-1cm] {stop};
  29.  
  30. draw [arrow] (start) -- (pro1);
  31. draw [arrow] (pro1) -- (pro2);
  32. draw [arrow] (pro2) -- (pro3);
  33. %draw [arrow] (pro3) -- (pro4);
  34. %draw [arrow] (pro3) -- (pro4a);
  35. draw [arrow] (pro4c) -- (pro4);
  36. draw [arrow] (pro4b) -- (pro4a);
  37. %draw [arrow] (pro4) -- (pro5);
  38. %draw [arrow] (pro4a) -- (pro5);
  39. draw [arrow] (pro5) -- (pro6);
  40. draw [arrow] (pro6) -- (pro7);
  41. draw [arrow] (pro7) -- (pro8);
  42. draw [arrow] (pro8) -- (pro9);
  43. draw [arrow] (pro9) -- (dec1);
  44. draw [arrow] (dec1) -- node[anchor=east] {YES}(stop);
  45. draw [arrow] (dec1) -- ($(dec1)+(10,0)$) coordinate (x);
  46. draw [arrow] (x)--(x|-pro10) node[midway,right] {NO}--(pro10);
  47. draw [arrow] (pro10) -- (pro3);
  48. draw [arrow] ([xshift=-1cm]pro3.south) coordinate (x) -- (x |- pro4.north);
  49. draw [arrow] ([xshift=1cm]pro3.south) coordinate (y) -- (y |- pro4a.north);
  50. coordinate (aux) at ([xshift=-1cm,yshift=0.8cm]pro5.north);
  51. draw (pro4.south -| aux) -- (aux);
  52. draw [arrow] (aux) -- (aux -| pro5.north);
  53. coordinate (aux) at ([xshift=1cm,yshift=0.8cm]pro5.north);
  54. draw (pro4a.south -| aux) -- (aux);
  55. draw [arrow] (aux) -- (aux -| pro5.north);
  56. draw [arrow] (aux -| pro5.north) -- (pro5.north);
  57. end{tikzpicture}
  58. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement