0

Let's say I create a node at a specific coordinate and I want its content to be displayed at 2 cm from it's coordinate. What is the simplest way to do this?

egreg
  • 1,121,712
el_maxx
  • 163

1 Answers1

1

enter image description here

\documentclass{article}
\usepackage{tikz}

\begin{document} \begin{tikzpicture} \tikz[label distance=2mm]%<--------------------- \node[ circle, fill=gray!45, label=above:12, label=right:3, label=below:6, label=left:9
] {clock}; \end{tikzpicture} \begin{tikzpicture} \tikz[label distance=2mm]%<--------------------- \node[ circle, fill=gray!45, label={[label distance=2cm]above:12}, label=right:3, label=below:6, label=left:9
] {clock}; \end{tikzpicture} \end{document}

EDIT

enter image description here

Syntax

label={[label distance=2cm]angle:label text}]

MWE

\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}

\node[left] at (1.3206,7.8665) {original+}; \node[left, label={[label distance=2cm]0:displaced+}] at (1.3206,7.8665) {};

\end{tikzpicture}

\end{document}

js bibra
  • 21,280