Files
linearalgebrarefresher/Vektor_add_2.tex

38 lines
1.3 KiB
TeX

\documentclass[10pt]{article}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
\begin{tikzpicture}[x=1cm,y=1cm]
\begin{axis}[
x=1cm,y=1cm,
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-3.5301370701590713,
xmax=7.701311755516924,
ymin=-0.5,
ymax=4.5,
xtick={-3,...,7},
ytick={-3,-2,...,6},]
\clip(-3.5301370701590713,-3.410207869386736) rectangle (7.701311755516924,6.144461052102637);
\draw [-latex,line width=1pt,color=blue] (0,0) -- (7,2);
\draw [-latex,color=red,line width=1pt] (0,0) -- (-3,2);
\draw [-latex,line width=2pt,color=orange] (0,0) -- (4,4);
\draw [-latex,line width=1pt,color=blue,dashed] (-3,2) -- (4,4);
\draw [-latex,line width=1pt,color=red,dashed] (7,2) -- (4,4);
\begin{scriptsize}
\draw[color=blue] (3.5242446569218764,1.3) node {$\overrightarrow{y}$};
\draw[color=black] (-1.4862515064759836,1.0793951285093604) node {$v$};
\draw[color=black] (2.0062131460310395,2.150946783255832) node {$w$};
\draw[color=blue] (0.5278687334641462,3.3) node {$\overrightarrow{y'}$};
\draw[color=black] (5.5085995731190485,3.083593593868502) node {$b$};
\end{scriptsize}
\end{axis}
\end{tikzpicture}
\end{document}