Graphics, Figures & TablesHow to draw a figure in Latex

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
diep_ktc1
Posts: 1
Joined: Wed Sep 07, 2022 5:54 am

How to draw a figure in Latex

Post by diep_ktc1 »

Hi all,

Could you please help me to draw the attached graph in latex? I tried multiple time but I am unable to do it.

Thank you very much for your time.

Best
Attachments
a.png
a.png (148.96 KiB) Viewed 1395 times

Recommended reading 2024:

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

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

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

How to draw a figure in Latex

Post by rais »

I'm not sure what the problem is, but something like this as a starting point

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{tikz}
\newcommand*\foo{Just a little text to put into the box}
\begin{document}
\begin{tikzpicture}[>=latex, node distance=2cm]
\coordinate (dummy) at (0,0);
\node[left of=dummy, rectangle, draw, text width=3cm] (A) {\foo};
\node[right of=dummy, rectangle, draw, text width=3cm] (B) {\foo};
\node[below of=dummy, rectangle, draw, text width=2cm] (C) {Energy};
\node[below of=C] (dummy2) {};
\node[left of=dummy2, rectangle, draw, text width=3cm] (D) {\foo};
\node[right of=dummy2, rectangle, draw, text width=3cm] (E) {\foo};
\draw[thick, ->] (C) -- (A.south);
\draw[thick, ->] (C) -- (B.south);
\draw[thick, ->] (C) -- (D.north);
\draw[thick, ->] (C) -- (E.north);
\end{tikzpicture}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
might help.

KR
Rainer
Post Reply