Code: Select all
\L{
\tikzset{>=latex}
\begin{tikzpicture}
\draw[step = 0.2 cm, gray!30,very thin] grid(16,24);
\draw[step = 2 cm, gray!60, thin] grid(16,24);
\draw[->,very thick] (0,0) -- (16.3,0);
\draw[->,very thick] (0,0) -- (0,24.3);
\foreach \x in {0 , 2 ,..., 16 }
\pgfmathparse{\x/2}
\pgfmathprintnumberto{\pgfmathresult}{\roundednumberx}
\draw[thick] (\x cm, 0.1 cm) -- (\x cm, -0.1 cm) node[anchor=north] {$\roundednumberx$ m};
%-------------------------------------------------------
\foreach \y in {0 , 2 ,..., 24 }
\pgfmathparse{\y/2}
\pgfmathprintnumberto{\pgfmathresult}{\roundednumbery}
\draw[thick] (0.1 cm, \y cm ) -- (-0.1 cm, \y cm ) node[anchor=east] {$\roundednumbery$ m};
\end{tikzpicture}
}
The code should be enclosed in \L{}.