노드의 정확한 반경을 어떻게 설정합니까?

노드의 정확한 반경을 어떻게 설정합니까?

에너지 수준 다이어그램을 작성하면서 다음 답변을 사용하여 노드 원의 반경을 동일하게 만들었습니다.노드의 정확한 반경을 설정하는 방법은 무엇입니까?

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

여기에 이미지 설명을 입력하세요

관련 정보