Plot a single vector with quiver


In [1]:
import matplotlib
matplotlib.__version__


Out[1]:
'1.4.2'

In [2]:
import matplotlib.pyplot as plt
%matplotlib inline

In [3]:
plt.figure()
ax = plt.gca()
lim=2
ax.quiver(0,0,1,1,angles='xy',scale_units='xy',scale=1)
ax.set_xlim([-lim,lim])
ax.set_ylim([-lim,lim])
ax.grid()



In [ ]: