我正在尝试使用以下布局设置思维导图:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,arrows,arrows.meta,calc,mindmap,trees}
\begin{document}
\begin{tikzpicture}[mindmap, concept color=blue]
\node[concept] {A}
[clockwise from= 300]
child[concept color=green] {
node[concept] {C}
[clockwise from= 300]
child { node[concept] {C1} }
child { node[concept] {C2} }
}
child[concept color=green]
{node[concept] {B}};
\end{tikzpicture}
\end{document}
答案1
这符合你的要求吗?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\begin{document}
\begin{tikzpicture}[
mindmap,
level 1 concept/.append style={sibling angle=90},
level 2 concept/.append style={sibling angle=90},
level 3 concept/.append style={sibling angle=60},
concept color=blue!50,
]
\node[concept, font=\Huge] {A}
[counterclockwise from=225]
child[concept color=green!60!blue!50] {
node[concept, font=\normalsize] {B}
}
child[concept color=green!60!blue!50] {
node[concept, font=\normalsize] {C}
[counterclockwise from=225]
child { node[concept, font=\normalsize] {C1}
[counterclockwise from=240]
child { node[concept, font=\normalsize] {C11} }
child { node[concept, font=\normalsize] {C12} }
}
child {node[concept, font=\normalsize] {C2}
[counterclockwise from=240]
child { node[concept, font=\normalsize] {C21} }
child { node[concept, font=\normalsize] {C22} }
}
};
\end{tikzpicture}
\end{document}
答案2
我第一次尝试使用思维导图
平均能量损失
\documentclass[tikz]{standalone}
\usetikzlibrary{mindmap}
\begin{document}
\begin{tikzpicture}[
mindmap,
concept color=blue
]
\node[concept] {a}
[clockwise from=300]
child [concept color=pink]{node[concept] {c}
child[concept color=teal!70!green] {node[concept] {c1}
child {node[concept] {c11}}
child {node[concept] {c12}}}
child[concept color=violet!75] {node[concept] {c2}
child {node[concept] {c21}}
child {node[concept] {c22}}}}
child[concept color=orange!80] {node[concept] {b}};
\end{tikzpicture}
\end{document}