Based on the answer in TikZ Adding Text, I tried the below example to display the coordinates as text in the Tikz figure. But the code is not compilable.
How do I add text to a coordinate in tikz without using the \node command.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[thick,rounded corners=8pt] (0,0) {0,0} -- (0,2) {0,2};
\end{tikzpicture}
\end{document}
After the suggestion from @JouleV, I have the following:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (-5,0) node {-5,0} -- (5,0) node {5,0};
\draw (0,-5) node {0,-5} -- (0,5) node {0,5};
\draw (0,0) circle [radius=3cm];
\end{tikzpicture}
\end{document}
How to ensure that there is enough space between the text and lines?


\draw (0,0) node {0,0}--(0,2) node {0,2};. Have a look at this. – Feb 23 '19 at 04:20