Data Science, Artificial Intelligence, Machine Learning, Programming, Mathematics.
and the ending point of $y$. You can also draw axes with plt.axhline and plt.axvline (the parameter zorder allows you to set the axes behind the other elements). import matplotlib.pyplot as plt plt.quiver(0, 0, v[0], v[1], angles='xy', scale_units='xy', scale=1, color="gray") plt.xlim(-0.3, 2.2)