我需要改变圆圈的大小,但radius
这里不起作用。
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\path node(ID1)[draw,shape=rectangle]{ID1};
\path node[draw=red,shape=circle]at(ID1.north){};
\end{tikzpicture}
\end{document}
答案1
有几个重要的 pgf 键,您可以通过适当设置来控制它们minimum size
。inner sep
近似inner sep
地,if the radius is not "too small". If you want to control the radius very precisely, use
inner sep=0pt and
minimum size=`。
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\path node(ID1)[draw,shape=rectangle]{ID1};
\path node[draw=red,shape=circle,minimum size=4pt,inner sep=0pt,outer sep=0pt]at(ID1.north){};
\draw[blue] (ID1.north east) circle[radius=2pt];
\end{tikzpicture}
\end{document}