additional question to "stepwise mindmaps"
2009-12-01 07:21:29 GMT
Hi,
Is it possible to modify the following code (while stepwise
showing a mindmap) such that the left branch got a different
color than the right branch? I'd like to use the the color
to emphasize the different concepts rather than the different
levels. So the left branch might be magenta with variable
saturation for the levels and the right branch green, e.g.
The respective chapters in the fine manual are way too
sophisticated for me ...
Regards,
Juergen
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\begin{document}
\tikzset{%
mindmap/.style={%
level 1/.append style={level 1 concept},
level 2/.append style={level 2 concept},
level 3/.append style={level 3 concept},
concept color=magenta!30,
level 1 concept/.style={%
level distance=5cm,
every child/.style={concept color=green!30},
},
level 2 concept/.style={%
level distance=3cm,
every child/.style={concept color=red!30},
},
level 3 concept/.style={%
level distance=3cm,
every child/.style={concept color=blue!30},
},
every node/.style={concept},
},
visible from/.code={%
\ifnum#1>\overlay%
\tikzset{%
circle connection bar switch color/.code={},
edge from parent/.style={draw=none},
every node/.style={
concept, draw=none, fill=none,
execute at begin node={\setbox0=\hbox\bgroup\hskip0pt\let\\=\relax},
execute at end node=\egroup\phantom{\box0}
}%
}%
\fi%
}
}
\begin{frame}
\frametitle{Mindmap with Beamer}
\begin{tikzpicture}[transform canvas={scale=0.5},remember picture, overlay, mindmap]
\foreach \overlay in {1,...,19}{%
\node<\overlay> at (current page.center) {\shortstack{Modulations-\vphantom{y}\\verfahren}}
child[visible from=2,grow=0] {
node (sinus) {\shortstack{Sinusträger\\\tiny(zeitkontinuierlich)}}
child[visible from=3,grow=90] {
node (sinusk) {\shortstack{wert-\\kontinu-\\ierlich}}
child[visible from=4,grow=30] { node {AM} }
child[visible from=5,grow=90] { node {FM} }
child[visible from=6,grow=150] { node {PM} }
}
child[visible from=7,grow=-90] {
node (sinusd) {\shortstack{wert-\\diskret}}
child[visible from=8,grow=-150] { node {ASK} }
child[visible from=9,grow=-90] { node {FSK} }
child[visible from=10,grow=-30] { node {PSK} }
}
}
child[visible from=11,grow=180] {
node (puls) {\shortstack{Pulsträger\\\tiny(zeitdiskret)}}
child[visible from=12,grow=90] {
node (pulsk) {\shortstack{wert-\\kontinu-\\ierlich}}
child[visible from=13,grow=30] { node {PAM} }
child[visible from=14,grow=90] { node {PPM} }
child[visible from=15,grow=150] { node {PDM} }
}
child[visible from=16,grow=-90] {
node (pulsd) {\shortstack{wert-\\diskret/\\codiert}}
child[visible from=17,grow=-150] { node {PCM} }
child[visible from=18,grow=-90] { node {DM} }
child[visible from=19,grow=-30] { node {DPCM} }
}
};
}
\end{tikzpicture}
\end{frame}
\end{document}
------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________ pgf-users mailing list pgf-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgf-users
RSS Feed