I want something like this, but I can't make it in a simple and elegent way.
A similar picture placed below can be plotted using |-|
, so I wonder if there is a similar way.
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\draw[|-|] (0,0) -- (2,0);
\end{tikzpicture}
\end{document}
Best Answer
Use
[left]
or[right]
option for arrow heads; see Page 193 of this pgfmanual (version 3.0.1).