I have a feeling this should be simple, but I can't find how to do it. I'm trying to draw an arrow looping around the corner of a node in a state diagram. I have the following, but as you see it cuts the corner, plus ideally the arrow would loop from nearer the corner.
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[%node distance = 15mm and 300mm,
node/.style={
draw,
rectangle,
text width=25mm,
text centered,
minimum height=20mm
},
arrow/.style={
very thick,
->
}]
\node[node] (state) {State};
\draw [arrow] (state.south) to [out=270, in=0] (state.east);
\end{tikzpicture}
\end{document}
Best Answer
You have several possibilities: you can use the
.. controls ..
syntax, or theout=<value>,in=<value>,loop
options perhaps combined with an appropriatelooseness
, or (as Jake suggested) you can use andarc
to get a proper circle arc: