
Ich versuche, eine \newcommand
Verwendung zu ändern tikzpicture
, die Blasen derzeit horizontal rendert, um die Blasen vertikal ausgerichtet mit ihren Texten neben jeder von ihnen anzuordnen. Hier ist das Latex:
\newcommand{\bubbles}[1]{
% Reset counters
\setcounter{a}{0}
\setcounter{c}{150}
\begin{tikzpicture}[scale=3]
\foreach \p/\t in {#1} {
\addtocounter{a}{1}
\bubble{\thea/2}{\theb}{\p/25}{\t}{1\p0}
}
\end{tikzpicture}
}
% Command to output a bubble at a specific position with a specific size
\newcommand{\bubble}[5]{
\filldraw[fill=black, draw=none] (#1,0.5) circle (#3); % Bubble
\node[label=\textcolor{black}{#4}] at (#1,0.7) {}; % Label
}
Gibt es eine Möglichkeit, das zu tun?