我有以下图形代码。我对结果不满意,尤其是“项目符号”。如何改进这个图形?谢谢
\def\xmin{-5}\def\xmax{5}
\def\ymin{-1.5}\def\ymax{1.5}
\begin{tikzpicture}[scale=1.5]
\draw[dotted,step=1] (\xmin,\ymin) grid (\xmax,\ymax);
\draw[thick, ->] (\xmin,0)--(\xmax,0);
\draw[thick, ->] (0,\ymin)--(0,\ymax);
\clip (\xmin,\ymin) rectangle (\xmax,\ymax);
\foreach \i in {-2,...,2}{
\draw[very thick, *-(] (2*\i-1,-.5)--(2*\i+1,.5);
}
\end{tikzpicture}