In a tikzpicture, I want to draw a circular arc that is almost all of a circle from one point to another. I have the coordinates of the start and end points and the radius I would like, but I do not know where to put the center of the circle. Naively, I expect that using draw with bend=N with N being slightly less than 360 would give the result I want, but when N exceeds 90, bend behaves as if a smaller number was given and the arc is more or less straight from the start point to the end point. However, given the plethora of features in Tikz, I expect that there is some straightforward way to get this effect.
In my particular application, the arc starts downward from the bottom of a node, circles around and ends downward into the top of the same node. My current best version is
\documentclass{amsart}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node (box) at (0,-2) {$foo$};
\draw [->] (box.south)
to [out=260,in=100,looseness=10]
node [midway,left=0pt] {$bar$}
(box.north);
\end{tikzpicture}
\end{document}
where "foo" is the text in the node and "bar" is a label on the arc. But it produces an elliptical arc rather than a circular arc:
arc
syntax.arc
it is a bit annoying to figure out where the arc should start and end, depending on how you specify the circle the arc lies on.({\rx*cos(\t)}, {\ry*sin(\t)})
for some angle\t
. In fact,\atan2(y/ry, x/rx)
for point(x,y)
.