\input{preamble-standalone.ltx} \begin{document} % Ex. No. 222 (Section 31.3 : \tkzcname{tkzClip}) \begin{tikzpicture} \tkzInit[xmax=4, ymax=3] \tkzAxeXY \tkzGrid \tkzClip \draw[red] (-1,-1)--(5,2); \end{tikzpicture} \end{document}