2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/GeoTopo/figures/plane-r2.tex

22 lines
511 B
TeX
Raw Normal View History

\tdplotsetmaincoords{110}{50}
\begin{tikzpicture}
[tdplot_main_coords,
cube/.style={very thick,black},
grid/.style={very thin,gray},
axis/.style={->,blue,thick}]
%draw a grid in the x-y plane
\foreach \x in {-0.5,0,...,2.5}
\foreach \y in {-0.5,0,...,2.5}
{
\draw[grid] (\x,-0.5) -- (\x,2.5);
\draw[grid] (-0.5,\y) -- (2.5,\y);
}
%draw the axes
\draw[axis] (-1,0,0) -- (3,0,0) node[anchor=west]{$y$};
\draw[axis] (0,-1,0) -- (0,3,0) node[anchor=west]{$x$};
\end{tikzpicture}