I know that with TikZ, we can specify the radius of a circle when a \draw
command is used, as in:
\draw[fill] (1,2) circle (3pt);
But how does one indicate the radius when you draw the circle by means of a \node
command, as in the following?
\node[fill,circle,label=below left:$x$] at (1,2) {};
For example, suppose I want a 3pt radius of the circle in this:
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\node[fill,circle,label=below left:$x$] at (1,2) {};
\end{tikzpicture}
\end{document}
I prefer to see two ways of doing this: one way that would apply just to the particular (filled) circle, and a second way that could be used globally for the entire picture.
Best Answer
at node with circle shape is radius equal to
minimum size/2
, of course if you setinner sep
to zero. node features can define local at node or as new style withtikzpicture
options or globally withtikzset
in preamble of a document. for example:or