答案1
这是我使用的方法tikz
。
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[stealth-] (-10.5,0) -- (10,0);
\foreach \x in {-10,...,10}{
\draw (\x,-2pt) node[below] (p-\x) {} -- (\x,2pt);
}
\foreach \x in {-10,-5,0,5,10}{
\draw (\x,-4pt) node[below] {\x} -- (\x,4pt);
}
\draw[cyan,-stealth,line width=2pt] (-2,0) -- (10.5,0);
\draw[cyan,line width=2pt, fill=white] (-2,0) circle[radius=2pt];
\end{tikzpicture}
\end{document}