\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=2pt] (0,0) -- (7,2); \draw [-latex,color=red,line width=1pt] (0,0) -- (-3,2); \draw [-latex,,line width=2pt] (0,0) -- (4,4); \draw [-latex,,line width=2pt] (-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=black] (0.5278687334641462,3.162967790516389) node {$a$}; \draw[color=black] (5.5085995731190485,3.083593593868502) node {$b$}; \end{scriptsize} \end{axis} \end{tikzpicture} \end{document}