1
我试图从matplotlib
使用quiver
来绘制向量(3,2)和(4,-1)。然而,下面的代码Matplotlib颤抖与否定的方向
import matplotlib.pyplot as plt
X = (0, 0)
Y = (0, 0)
U = (3, 4)
V = (2, -1)
fig, ax = plt.subplots()
ax.quiver(X, Y, U, V, angles='xy', scale_units='xy', scale=1)
ax.set_xlim([ -5, 5 ])
ax.set_ylim([ -5, 5 ])
plt.show()
的(4,-1)矢量得到了绘制为(-4,-1),但(3,2)矢量是正确的。发生了什么事以及如何解决它?
Matplotlib v。2.0.0修正了它。谢谢! – bcf