5
我想用matplotlib繪製箭頭,以便每個箭頭的大小相同,而不管實際的箭頭大小。matplotlib中的等號箭頭
實例:
箭頭使用matplotlib.pyplot.Arrow繪製():
# p is the point of origin, pdiff the direction
arr = plt.Arrow(p[0], p[1], pdiff[0], pdiff[1], fc=color, width=0.4)
plt.gca().add_patch(arr)
你能告訴你在哪裏實際繪製箭頭的代碼? – mgilson