Hello dear friend;
in reality I want to draw a tikz mindmap but the childs being a rectangle, like shows in the image
Thanks
Text Formatting ⇒ Drawinn Tikz mindmap and changin shapes
Drawinn Tikz mindmap and changin shapes
- Attachments
-
- TIKZ MINMAP.png (16.15 KiB) Viewed 4610 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 2
- Joined: Mon Jun 18, 2018 3:10 pm
Drawinn Tikz mindmap and changin shapes
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\usetikzlibrary[graphs]
\graph [no placement,nodes={draw,rectangle},edges={>=latex}] {
A [at={(2,2)},circle] -- {
B [at={(0,4)}],
C [at={(4,4)}],
D [at={(4,0)}],
E [at={(0,0)}],
}
};
\end{tikzpicture}
\end{document}
Like this?
\begin{document}
\begin{tikzpicture}
\usetikzlibrary[graphs]
\graph [no placement,nodes={draw,rectangle},edges={>=latex}] {
A [at={(2,2)},circle] -- {
B [at={(0,4)}],
C [at={(4,4)}],
D [at={(4,0)}],
E [at={(0,0)}],
}
};
\end{tikzpicture}
\end{document}
Like this?
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Drawinn Tikz mindmap and changin shapes
Another example:
Stefan
Code: Select all
\documentclass[border = 10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[
basenode/.style = { color = white, fill = blue!70, draw, font = \sffamily},
rootnode/.style = { basenode, circle, minimum width = 2cm},
childnode/.style = { basenode, rectangle, rounded corners,
minimum width = 10em, align = center},
]
\draw
node [rootnode] (root) {root}
node [childnode, above left = 1cm of root] (A) {TEXT}
node [childnode, below left = 1cm of root] (B) {TEXT}
node [childnode, above right = 1cm of root] (C) {TEXT}
node [childnode, below right = 1cm of root] (D) {TEXT}
(root) -- (A)
(root) -- (B)
(root) -- (C)
(root) -- (D)
;
\end{tikzpicture}
\end{document}
LaTeX.org admin
Drawinn Tikz mindmap and changin shapes
Thank you Mr Stefan