36 lines
999 B
TeX
36 lines
999 B
TeX
\documentclass{article}
|
|
\usepackage{tikz}
|
|
\usepackage{verbatim}
|
|
|
|
\begin{comment}
|
|
|
|
|
|
\end{comment}
|
|
|
|
\begin{document}
|
|
|
|
\begin{tikzpicture}[scale=1.5, >=stealth]
|
|
% Zeichne Grid
|
|
\draw[step=0.1, color=lightgray] (-1,-1) grid(4,3.5);
|
|
% Draw axes
|
|
\draw [<->] (0,3) node (yaxis) [above] {$y$}|- (3,0) node (xaxis) [right] {$x$};
|
|
|
|
\draw [color=red, thick, ->](0,0) -- +(2.5,2.5);
|
|
|
|
\draw [thick, ->](2.8,2.2) node[anchor=west] {''Pfeil''} -- (2.5,2.5) ;
|
|
|
|
\foreach \y in {0,2,4}
|
|
\draw (1pt,\y*0.5 cm) -- (-1pt,\y*0.5 cm) node[anchor=east] {$\y$};
|
|
|
|
\foreach \x in {0,2,4}
|
|
\draw (\x*0.5 cm,1pt) -- (\x*0.5 cm,-1pt) node[anchor=north] {$\x$};
|
|
|
|
|
|
\draw [color=blue, dashed] (-0.1,2.5) -- (2.5,2.5);
|
|
\draw [color=blue, dashed] (2.5,-0.1) -- (2.5,2.5);
|
|
\node[blue] at (-0.25,2.5) {$a_2$};
|
|
\node[blue] at (2.5,-0.25) {$a_1$};
|
|
\node[right] at (1.4,2.1) {Vektor $\vec a$};
|
|
\end{tikzpicture}
|
|
\end{document}
|