I am using this simple code:
import numpy as np
import matplotlib.pyplot as plt
X = [0]
Y = [0]
U = [4]
V = [1]
plt.quiver(X, Y, U, V, color='b', units='xy', scale=1)
plt.title('Single Vector')
plt.xlim(-2, 5)
plt.ylim(-2, 2.5)
plt.grid()
plt.show()
But the output is definitely wrong, as you can see below. How can I fix this?
