\draw[help lines, color=gray!30, dashed] (-6.2,-5.1) grid (10.1,4.5);
\draw [-stealth] (-6,0) -- (10,0);
\draw [-stealth] (0,-5.3) -- (0,4.5);
\foreach \x in {-6,...,-1,1,2,...,9}
\draw (\x,2pt) -- (\x,-2pt) node[below]{$\x$};
\foreach \y in {-5,...,-1,1,2,3,4}
\draw (2pt,\y) -- (-2pt,\y) node[left]{$\y$};