I use TikZ to draw a Bézier curve and place 4 circles (nodes) on that curve using pos=0.25
etc. (see MWE below). The curve has an arrow at the end. I would like to use >=latex
to get LaTeX-style arrow heads.
This is where I run into a problem: without >=latex
, the node placement is fine, i.e. the curve runs through the center of the node. With >=latex
, the last node before the arrow is placed too low (see images below), i.e. the curve doesn't run through the center of the node.
Is this behavior intended? Is there any way around it?
MWE:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[>=latex]
\draw[->] (0,0) .. controls (2,0) and (2,6) .. (4,4)
\foreach \t in {0,0.25,0.5,0.75}
{ node[pos=\t,circle,draw,fill] {} };
\end{tikzpicture}
\begin{tikzpicture}
\draw[->] (0,0) .. controls (2,0) and (2,6) .. (4,4)
\foreach \t in {0,0.25,0.5,0.75}
{ node[pos=\t,circle,draw,fill] {} };
\end{tikzpicture}
\end{document}
Output: (upper: with >=latex
, lower: without >=latex
)