Ticker

6/recent/ticker-posts

Draw Rectangles and Arrows Diagram Using TikZ LaTeX

Code in TikZ \(\LaTeX\)

\documentclass[margin=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{fit,shapes.arrows}
\usetikzlibrary{arrows.meta}
\usepackage{varwidth}
\usepackage{enumitem}
\usepackage{amsmath}
\usetikzlibrary{positioning,calc}
\begin{document}
\begin{tikzpicture}[
squarednode/.style={rectangle,draw = black,text = black,rounded corners = 0,minimum width = 5cm,minimum height = 2.5cm}
]
% Rectangles
\node[draw, align=center] (1R) at (-2.5,0) {Risk Assessment\\ by probability\\distribution};
\node[draw, align=center] (2R) at (5,0) {Additive and\\ multiplicative\\risk};

% Arrows
% Between 1R and 2R
\begin{scope}[->,>=latex]
\foreach \i in {-1,...,1}{%
\draw[->] ([yshift=\i * 0.4 cm]1R.east) -- ([yshift=\i * 0.4 cm]2R.west);}

% Before 1R
\foreach \j in {-1,...,1}{%
\draw[->] ([yshift=\j * 0.4 cm]-7,0) -- ([yshift=\j * 0.4 cm]1R.west);}
\end{scope}

% After 1R
\draw[-latex,rotate=180] (2R.east) -- (-8,0);

% Labelling
\node[left =of 1R,shift={(0.8,0.6)}] {Pig iron temperature};
\node[left =of 1R,shift={(0.2,0.2)}] {Circular pressure};
\node[left =of 1R,shift={(1,-0.2)}] {Hot wind temperature};

\node[left =of 1R,shift={(8,0.6)}] {Pig iron temperature risk};
\node[left =of 1R,shift={(7.4,0.2)}] {Circular pressure risk};
\node[left =of 1R,shift={(8.2,-0.2)}] {Hot wind temperature risk};

\node[left =of 2R,shift={(5.2,0.2)}] {Global risk};
\end{tikzpicture}
\end{document}

Result Generated


Related Questions

  • draw rectangles and arrows diagram using tikz latex code
  • draw rectangles and arrows diagram using tikz latex pdf
  • draw rectangles and arrows diagram using tikz latex github
  • draw rectangles and arrows diagram using tikz latex in urdu
  • draw rectangles and arrows diagram using tikz latex in latex
  • draw rectangles and arrows diagram using tikz latex
  • tikz draw arrow size
  • how to draw arrow in latex
  • TikZ node placement and arrow drawing
  • How to draw a block of rectangles and arrows in tikz
  • arrow tikz diagram
  • Draw a diagram with different shapes with TikZ
  • How to draw a rectangle with arrows?

Post a Comment

0 Comments