Grafika: koordinátarendszer

A preambulumba

\usepackage{tikz}

 

A megfelelő helyre

\begin{tikzpicture}
\draw [color=gray!40] (-5.5,-5.5) grid (5.5,5.5);
\draw [line width=1.6pt,->] (-5.5,0) to (5.5,0);
\draw [line width=1.6pt,->] ( 0,-5.5) to (0,5.5);
\node at (-0.3,-0.3) {$O$};
\node at (1,-0.3) {$1$};
\node at (5.5,-0.3) {$X$};
\node at (-0.3,1) {$1$};
\node at (0.2,5.5) {$Y$};
\end{tikzpicture}

utasítást.

tex 0001