I have a problem with the position of an arrow tip when drawing a circular double distance arrow. Problem seems to be the use of library bending or not. If not, partly correctly positioned tips, but problems with width option (why to use different widths. that is no way to go) and differing lines of the arc in calendar year 1 and 2. Very confusing and no solution in sight. Also I cannot find a way to combine the text decorations, which are not placed suitably in the arrows, with arrows. Is that the way to go? All what I get are syntax errors. In hope I could make the idea clear:
- correctly formed arrows with tips (open and filling should be possible).
- "baselined" text in the mentioned arrows.
- use of additional graphics, such as a bend arrow (faked here by ----->), in the added text
Any, perhaps completely other, idea to solve that would be very appreciated!
\documentclass[]{article}
\usepackage{tikz}
\usetikzlibrary{
% bending, % for arrows.
calc,
arrows.meta, % for the tip in skorpio
decorations,
decorations.pathreplacing,
decorations.pathmorphing,
decorations.text,
decorations.markings, % arrow tips on a circle
}
\usepackage[paperheight=160mm,
paperwidth=180mm,
top=5mm,
bottom=5mm,
left=5mm,
right=5mm,
%showframe
]{geometry}
\begin{document}
\def\radiustropy{35mm} % tropical year radius
\begin{tikzpicture}
\tikzset{shape ty/.style= {color = black!30,
draw,
%fill = yellow!30,
line width = 1pt,
inner xsep = 2.5cm,
inner ysep = 0.5cm},
}% end tikzset shape ty
\node[name=ty,shape=circle,shape ty] {Circle\vrule width 1pt height 2cm};
% to cover the edge of ty (future use)
\node[draw,blue,, line width=3mm,name=c,shape=circle,minimum size=\radiustropy*2-3mm] at (ty.center){};
%
%tropical year, full circle
\draw [->,draw=red!10!black!60!white,,
double distance=1ex,
line width=1pt,
-{Stealth[width=10pt,red!10!black!60!white,open,scale=1.0]}
% doesn't work % % arrows={Stealth[red!10!black!60!white,open,bend,scale=1.0]}
]%%
(0:\radiustropy) arc [start angle=0, end angle=360, radius=\radiustropy];
% text, long, up to halfcircle
\path%
[%
postaction={decorate,%
decoration={raise=-1pt,%
text along path, %
text format delimiters={[}{]},
text={[\tiny]A tropical year lasts 365 days, 5 hours 48 minutes und 45.2 seconds and begins and ends here -----------> [] },
text align={align=center}
}%
}%
]
(-\radiustropy,0) arc (180:0:\radiustropy);
\path [,postaction={decorate,decoration={raise=-3pt,text along path,%
text format delimiters={[}{]},
text={[\tiny]A tropical year lasts 365 days, 5 hours 48 minutes und 45.2 seconds [] },
%reverse path,
text align={align=}
}}](180:\radiustropy) arc (-180:0:\radiustropy);
% first calendar year
\draw [->,draw=red!30!black!40!white,
-{Stealth[red!30!black!40!white,open,scale=1.0]}
]%
(0,0) -- (350:\radiustropy+17); %
% help to set begin of second year
\node[inner sep=0,draw,blue,,name=bsy,circle,minimum size=.3pt]at(4.038,-0.713){};
\draw [->,draw=red!30!black!40!white,,
double distance=1.5ex,
line width=1pt,
-{Stealth[width=12pt,red!30!black!40!white,open,scale=1.0]}
]%%
(0:\radiustropy+2.5mm) arc [start angle=0, end angle=350, radius=\radiustropy+2.5mm];
% text, long, up to halfcircle
\draw%
[%
postaction={decorate,%
decoration={raise=-1.5pt,%
text along path, %
text format delimiters={[}{]},
text={[\tiny]A calendar year lasts 365 days [] },
%reverse path,
text align={align=center}
}%
}%
]
(-\radiustropy-2.5mm,0) arc (180:0:\radiustropy+2.5mm);
\draw [,postaction={decorate,decoration={raise=-1.5pt,text along path,%
text format delimiters={[}{]},
text={[\tiny]First calendar year, 5 hours 48 minutes und 45.2 seconds too less [] },
text align={align=}
}}](180:\radiustropy+2.5mm) arc (-180:0:\radiustropy+2.5mm);
% second calendar year
\draw [->,draw=red!60!black!20!white,
-{Stealth[red!60!black!40!white,open,scale=1.0]}
]%
(0,0) -- (340:\radiustropy+17);
\draw [->,draw=red!60!black!20!white,,
double distance=1.5ex,
line width=1pt,
-{Stealth[width=13pt,red!60!black!20!white,open,scale=1.0]}
]%%
%(4.038,-0.713)
(bsy) arc [start angle=-10, end angle=340, radius=\radiustropy+6mm];
% text, long, up to halfcircle
\draw%
[%
postaction={decorate,%
decoration={raise=-1.5pt,%
text along path, %
text format delimiters={[}{]},
text={[\tiny]Some comment about tje second year e.g. dec values of the hours [] },
%reverse path,
text align={align=center}
}%
}%
]
(-\radiustropy-6mm,0) arc (180:0:\radiustropy+6mm);
\draw [,postaction={decorate,decoration={raise=-1.5pt,text along path,%
text format delimiters={[}{]},
text={[\tiny]Second calendar year, 10 hours 96 minutes und 90.4 seconds too less [] },
%reverse path,
text align={align=}
}}](180:\radiustropy+6mm) arc (-180:0:\radiustropy+6mm);
% a grid
\draw[step=.1cm,gray!50!white,very thin] (0,-1) grid (5,5);
\draw[step=1cm,black!40!red, very thin,opacity=0.4] (0,-1) grid (5,5);
\foreach \x/\xtext in {0,4,5}
\draw (\x cm,1pt) -- (\x cm,-1pt) node[anchor=north] {\tiny$\xtext$};
\foreach \y/\ytext in {1,5}
\draw (1pt,\y cm) -- (-1pt,\y cm) node[anchor=east] {\tiny$\ytext$};
% end grid
\end{tikzpicture}
\end{document}