I want to have a tip, simultaneously a circle and an end line, in the center of the circle, like the figure 1.
I have tried with shorten
command as in other posts, but the line end is outside of the circle.
\documentclass[12pt,a4paper]{article}
\usepackage[spanish,es-noshorthands]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}
\usepackage{tikz}
\usepgflibrary{arrows.meta}
\begin{document}
\begin{figure}[!htp]
\centering
\begin{tikzpicture}
\draw (0,0)--(4,0);
\draw [|{Circle}-{Circle}|,shorten <=-2pt,shorten >=-2pt] (0,-.25)--node[below]{2.0}(4,-.25);
\end{tikzpicture}
\caption{Caption}
\end{figure}
\end{document}