Quantcast
Channel: Question and Answer » tikz-arrows
Viewing all articles
Browse latest Browse all 33

Positioning arrowheads at beginning and end of double line in Tikz

$
0
0

Why are the arrowheads placed as they are in the figure below? I.e. why are they not placed at the exact beginning and end of the path?

enter image description here

Code used:

documentclass[tikz,border=2pt]{standalone}

usetikzlibrary{decorations.markings,arrows.meta}

begin{document}

begin{tikzpicture}
    draw[double distance=15, thick,
            postaction={decorate, decoration={markings, mark=at position 0 with {arrow{Straight Barb[reversed,length=0pt 0.7]}}}},
            postaction={decorate, decoration={markings, mark=at position 1 with {arrow{Straight Barb[length=2pt 0.7]}}}}
        ] (0,2) -- node {FOO}(5,2);
end{tikzpicture}

end{document}

For reference, how I want it to be:

enter image description here


Viewing all articles
Browse latest Browse all 33

Trending Articles