答案1
使用纯 tikz:
\documentclass[tikz, margin=3mm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[very thick] (0,0) -- + (8,0);
\foreach \i/\j [count=\x from 0] in {0/ , 25/$Q_1$, 50/$Q_2$, 75/$Q3$, 100/ }
\draw[very thick] (2*\x,0.1) node[above,xshift=1ex] {\i\%} -- + (0,-0.2) node[below] {\j};
\end{tikzpicture}
\end{document}