7

I have stumbled upon some weird behaviour regarding arcs and arrowheads.

Here is a MWE:

\documentclass[tikz]{standalone}
    \usepackage{tikz}
    \usepackage{graphicx}
    \usetikzlibrary{arrows.meta}
    \def\Rad{2cm}
    \begin{document}
        \begin{tikzpicture} 
                            \draw[blue, thick] (0:\Rad) arc (0:360:\Rad);
                            \draw[orange,->]  (90:\Rad)    arc (90:90-170:\Rad);    
                            \draw[orange,-{Triangle[length=1mm, width=1mm]}] (90:\Rad) arc (90:90+170:\Rad);
    \end{tikzpicture}
    \end{document}

If you look closely at the outcome, one can notice that the orange arcs bend differently: enter image description here

I would rather use the triangular arrowheads, but it is the one that bends differently than the actual circle, so I can not use it as it seems to be inaccurate.

I appreciate your help.

8

All you need to do is to also load bending to cure this.

\documentclass[tikz]{standalone}
\usetikzlibrary{arrows.meta,bending}
\def\Rad{2cm}
\begin{document}
\begin{tikzpicture} 
 \draw[blue, thick] (0:\Rad) arc (0:360:\Rad);
 \draw[orange,->]  (90:\Rad)    arc (90:90-170:\Rad);    
 \draw[orange,-{Triangle[length=1mm, width=1mm]}] (90:\Rad) arc (90:90+170:\Rad);
\end{tikzpicture}
\end{document}

enter image description here

Explanation: pgfmanual p. 194-195

enter image description here

|improve this answer|||||
  • I'm glad there already exists a fix. Thank you! – RobEva Nov 19 '18 at 16:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.