我刚刚开始使用思维导图。如何才能使以下代码中的子节点均匀分布在根节点周围?目前它们都被挤在底部。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\begin{document}
\begin{tikzpicture}[mindmap]
\node[concept] {Root concept}
child {node[concept] {Child concept}}
child {node[concept] {Child concept}}
child {node[concept] {Child concept}}
child {node[concept] {Child concept}}
child {node[concept] {Child concept}}
;
\end{tikzpicture}
\end{document}
答案1
您需要clockwise from
或counterclockwise from
。也sibling angle
可能很重要。
\documentclass[tikz]{standalone}
\usetikzlibrary{mindmap}
\begin{document}
\begin{tikzpicture}[mindmap,concept color=yellow]
\node[concept] {Root concept}
[clockwise from=0,level 1 concept/.append style={sibling angle=72}]
child {node[concept] {Child concept}}
child {node[concept] {Child concept}}
child {node[concept] {Child concept}}
child {node[concept] {Child concept}}
child {node[concept] {Child concept}};
\end{tikzpicture}
\end{document}