![在思维导图中均匀分布子节点](https://linux22.com/image/395985/%E5%9C%A8%E6%80%9D%E7%BB%B4%E5%AF%BC%E5%9B%BE%E4%B8%AD%E5%9D%87%E5%8C%80%E5%88%86%E5%B8%83%E5%AD%90%E8%8A%82%E7%82%B9.png)
我刚刚开始使用思维导图。如何才能使以下代码中的子节点均匀分布在根节点周围?目前它们都被挤在底部。
\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}