I use \draw[|-|] () to (); to draw a few intervals.
I expect that each interval is rendered like |----| (see the 2nd and the 3rd intervals in the figure below).
However, the top and the bottom intervals below show only a half of their endpoint lines (i.e., |).
Why are these endpoint lines (|) not shown completely? How to show them?
Editable ReadOnly Code@ShareLaTeX
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[|-|, red] (0,0) to (1,0);
\draw[|-|, red, dashed] (0,1) to (1,1);
\draw[|-|, blue, dashed] (0,2) to (1,2);
\draw[|-|, blue] (0,3) to (1,3);
\end{tikzpicture}
\end{document}



arrows.meta. See Till's comment from 01/08/2016 in https://sourceforge.net/p/pgf/feature-requests/77/#9229 – Ignasi Nov 07 '16 at 17:35