I am trying to label curves which are created by the package hobby
. However, I can not align labels properly in the horizontal and vertical direction.
In the first image I am able to use specific coordinates to align at least horizontally. However, the vertical alignment fails.
In the second tikzpicture
I try to label the curves without using specific coordinates, but rather with nodes. Failing once again.
Thank you for any help.
\documentclass[tikz]{standalone}
\usetikzlibrary{hobby}
\begin{document}
\begin{tikzpicture}[thick]
% A
\node[orange] (A) at (11,4.58) {A} ;
\draw[orange] (5,4.58) -- (A);
\draw[orange] (-4,7) to[closed,curve through={(-3,-4.58) .. (0,-3) .. (5,4.58)}] (4,7) ;
% B
\node[red] (B) at (11,0.72) {B} ;
\draw[red] (2.0,0.72) -- (B);
\draw[red] (-1,6) to[closed,curve through={(-2,0.72) .. (0,-1) .. (2,0.72)}] (1,6) ;
% C
\node[green] (C) at (11,2) {C} ;
\path (0,2) node[circle,draw,green,minimum size = 1cm](circle) {} ;
\draw[green] (circle) -- (C);
\end{tikzpicture}
\begin{tikzpicture}[thick]
% A
\node[orange] (A) at (11,4.58) {A} ;
\draw[orange] (-4,7) to[closed,curve through={(-3,-4.58) .. (0,-3) .. (5,4.58)}] (4,7) node(a) {} ;
\draw[orange] (a) -- (A);
% B
\node[red] (B) at (11,0.72) {B} ;
\draw[red] (-1,6) to[closed,curve through={(-2,0.72) .. (0,-1) .. (2,0.72)}] (1,6) node(b) {};
\draw[red] (b) -- (B);
% C
\node[green] (C) at (11,2) {C} ;
\path (0,2) node[circle,draw,green,minimum size = 1cm](circle) {} ;
\draw[green] (circle) -- (C);
\end{tikzpicture}
\end{document}