mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-18 19:18:21 +02:00
The commands find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+ and find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+ were used to do so.
21 lines
507 B
TeX
21 lines
507 B
TeX
\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}
|