20

I drew a circle and wanted to add text $T_1$ inside it:

\draw (0,0) circle [radius=0.3] {$T_1$};

Why does this not work, and how can I fix it?

1 Answer 1

27

Use a node to add the label

\draw (0,0) circle [radius=0.3] node {$T_1$};

or use a \node with circle shape:

\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\draw (-2,-2) grid (3,3);
\draw (0,0) circle [radius=0.3] node {$T_1$};
\node[draw,circle,minimum size=1cm,inner sep=0pt] at (2,0) {$T_1$};
\end{tikzpicture}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .