# Add reversed arc barb tip at the end of a curve

I'd like to add a reversed arc barb tip to a curve in order to mark a discontinuity. While this works perfectly fine at the end of a line (and not a curve), reverting the barb tip horizontally at the end of a curve causes the curve to slightly cross the hook, as shown below:

\documentclass[11pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{arrows.meta}

\begin{document}

\begin{tikzpicture}
\draw[black] [domain=0:2,-{Arc Barb[reversed]}, samples=100] plot (\x,0); % the curve crosses the hook
\draw[-{Arc Barb[reversed]}] (0,-1) -- (2,-1); % well-functioning plot I cannot generalise for curves
\end{tikzpicture}

\end{document}


Could you please help me clip the end of the curve in the first example, or make the arrow tip begin a bit further?

• Can you show your real plot? I suspect that if a sample lies between the start of the arrow tip and the actual end of the line, PGF messes up somewhere. Compare with \draw[-{Arc Barb[reversed]}] (0,-1) -- (1.99,-1) -- (2,-1);. Sep 5 at 15:11
• Sep 6 at 6:32

Instead of shortening the curve, you can move the arrowhead to the end.

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{arrows.meta}

\begin{document}

\begin{tikzpicture}
\draw[black, shorten >=-2pt] [domain=0:2,-{Arc Barb[reversed]}, samples=100] plot (\x,0); % the curve crosses the hook
\draw[-{Arc Barb[reversed]}] (0,-1) -- (2,-1); % well-functioning plot I cannot generalise for curves
\end{tikzpicture}

\end{document}


• Thank you, that's what I needed! Sep 6 at 5:35
• If you want the arrowhead in the original position, which is needed for non tirvial plots, then you can use the method here: tex.stackexchange.com/a/652578/8650 Sep 6 at 6:31