Graphics, Figures & Tableshelp to dram this diagram

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

help to dram this diagram

Post by huu2022 »

Hello all,
greeting,
Please, kindly request a hint to complete this diagram.
Here is the code.

Code: Select all

\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 1571 times

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

help to dram this diagram

Post by Stefan Kottwitz »

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

Post by huu2022 »

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

Post by huu2022 »

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
Post Reply