我想在 tikz 中定义一个思维导图,它基本上与 的功能相同grow cyclic
,只是第一层的方向应该向下而不是向右。我尝试使用 来clockwise from
更改第一层的方向,但它破坏了一切...请注意,其他层仍应“对称”增长。
梅威瑟:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{verbatim}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}
\path[mindmap,concept color=black,text=white, grow cyclic]
node[concept] {Computer Science}
child[concept color=green!50!black] {
node[concept] {practical}
child { node[concept] {algorithms} }
child { node[concept] {data structures} }
child { node[concept] {pro\-gramming languages} }
child { node[concept] {software engineer\-ing} }
}
child[concept color=blue] {
node[concept] {applied}
child { node[concept] {databases} }
child { node[concept] {WWW} }
}
child[concept color=red] { node[concept] {technical} }
child[concept color=orange] { node[concept] {theoretical} };
\end{tikzpicture}\end{document}
我所看到的:
我想要的是:同样的东西,但是所有东西都顺时针旋转了 90 度,当然除了文本之外,不用转动头部仍然可以阅读!
谢谢你!
答案1
你想旋转 -90 度吗?只需告诉 Ti钾Z。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\usepackage{verbatim}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[rotate=-90]
\path[mindmap,concept color=black,text=white, grow cyclic]
node[concept] {Computer Science}
child[concept color=green!50!black] {
node[concept] {practical}
child { node[concept] {algorithms} }
child { node[concept] {data structures} }
child { node[concept] {pro\-gramming languages} }
child { node[concept] {software engineer\-ing} }
}
child[concept color=blue] {
node[concept] {applied}
child { node[concept] {databases} }
child { node[concept] {WWW} }
}
child[concept color=red] { node[concept] {technical} }
child[concept color=orange] { node[concept] {theoretical} };
\end{tikzpicture}
\end{document}