1 2 3 4 5 6 7
\begin{tikzpicture} \tkzInit[xmax=4, ymax=3] \tkzAxeXY \tkzGrid \tkzClip[space=1] \draw[red] (-1,-1)--(5,2); \end{tikzpicture}