0

This question already has an answer here:

How do I get the line break inside a pin node to work in TikZ?

\node[pin={\angle+0.5*\percent*3.6:hi\\there}] at (120:3) {};

I tried align=center but didn't work as a typical node.

marked as duplicate by JouleV, Phelype Oleinik, marmot tikz-pgf Mar 18 at 16:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Try \node[pin={[align=center]45:hi\\there}] at (120:3) {};. – Paul Gaborit Mar 18 at 15:52
3

This works for me:

\documentclass[tikz,border=2mm]{standalone} 
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}
 \node[pin={[align=center]30:{hi\\ there}}] at (120:3) {};
\end{tikzpicture}
\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.