如何更改 tikzpicture \newcommand 的方向

如何更改 tikzpicture \newcommand 的方向

我正在嘗試修改當前水平渲染氣泡的\newcommand使用tikzpicture,以便將氣泡與每個氣泡旁邊的文字垂直對齊。這是乳膠:

\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
}

我有什麼辦法可以做到這一點嗎?

相關內容