
エネルギー レベル図を作成するときに、この回答を使用してノード サークルの半径を等しくしました。ノードの正確な半径を設定するにはどうすればいいですか?
\documentclass{report}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (5,9) {$\uparrow$};% 4d
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (6,9) {$\uparrow$};% 4d
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (7,9) {};% 4d
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (8,9) {\phantom{6}};% 4d
\node[circle,draw,blue,text width=0.3cm,text height=0.3cm] at (9,9) {\quad};% 4d
\end{tikzpicture}
\end{document}
しかし、空のノードは、まだ、埋められたノードよりもわずかに小さいです。ファントムまたはクワッドを含めようとしましたが、効果はありませんでした。
何が足りないのでしょうか?
答え1
円のサイズを制御するためにファントムなどを使用する必要はありません。すべての円にオプションを使用してminimum size=<length>
、たとえば などの十分に大きいサイズを選択するだけですminimum size=0.7cm
。 で設定すると、cir/.style
コードがよりエレガントになります。
\documentclass{report}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[cir/.style={circle,draw,blue,minimum size=0.7cm}]
\node[cir] at (5,9) {$\uparrow$};% 4d
\node[cir] at (6,9) {$\uparrow$};% 4d
\node[cir] at (7,9) {};% 4d
\node[cir] at (8,9) {};% 4d
\node[cir] at (9,9) {};% 4d
\end{tikzpicture}
\end{document}