2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-24 05:48:05 +02:00
LaTeX-examples/tikz/plane-r2/plane-r2.tex

28 lines
637 B
TeX
Raw Permalink Normal View History

\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\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}
\end{document}