LaTeX forum ⇒ Graphics, Figures & Tableshelp to dram this diagram

Information and discussion about graphics, figures & tables in LaTeX documents.
huu2022
Posts: 3
Joined: Thu Aug 11, 2022 10:07 pm

help to dram this diagram

Postby huu2022 » Thu Aug 11, 2022 10:16 pm

Hello all,
greeting,
Please, kindly request a hint to complete this diagram.
Here is the code.
\documentclass[a4paper, 12pt]{article}
% Preamble

% Package used for input and output display.
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

% Package used for diagram.
\usepackage{tikz}
\usetikzlibrary{trees}

% Page layout.
\usepackage[margin=2cm]{geometry}

% Begin document.
\begin{document}
% Preamble.


\begin{figure}
\centering
\begin{tikzpicture}[
      thesis/.style={draw,rectangle,fill=white,text width=5 em, minimum height=5mm},
      parent/.style={draw,rectangle,fill=white,rounded corners=5, text width=5.5em, text centered, minimum height=10mm, node distance=7em, minimum width=8em},
every node/.style={draw,rectangle,fill=white,text width=2.7em, text centered, minimum height=6mm,node distance=1em},
level1/.style ={level distance=1.8cm},]

 
\node[parent]{\textbf{Data}} [edge from parent fork down] [sibling distance=3cm]
     child[level1] {node[thesis] {Data1}}
     child[level1]  {node[thesis] {Data2}}
     child[level1]  {node[thesis] {Data3}}
     child[level1]  {node[thesis] {Data4}}
     child[level1]  {node[thesis] {Data5}}
     child[level1]  {node[thesis] {Data6}}
;

\end{tikzpicture}
\end{figure}
\end{document}


Thank you
Attachments
Diagram.jpeg
Diagram.jpeg (57.61 KiB) Viewed 319 times

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Stefan Kottwitz
Site Admin
Posts: 9878
Joined: Mon Mar 10, 2008 9:44 pm

help to dram this diagram

Postby Stefan Kottwitz » Thu Aug 11, 2022 11:00 pm

Hi,

welcome to the forum!

I think, I would use a matrix of nodes, and then draw the arrows between the matrix nodes.

Stefan
LaTeX.org admin

huu2022
Posts: 3
Joined: Thu Aug 11, 2022 10:07 pm

help to dram this diagram

Postby huu2022 » Fri Aug 12, 2022 7:00 am

Dear stefan,
Thank you very much for your reply. Please,can you give me example, I am new to latex. Just reading tikz manual on matrix and alignment chapter 20.
regards

huu2022
Posts: 3
Joined: Thu Aug 11, 2022 10:07 pm

help to dram this diagram

Postby huu2022 » Fri Aug 12, 2022 7:21 am

Anothe question.
Can I mix these.
1. First trees diagram - top (A, B-H)
2. Matrix nodes and arrows as suggested for below diagram. a, b, etc
3. Join B and a, continue with b, c, d

Thank you for your support.
regards


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 3 guests