我想製作一個簡單的箭頭和一個兩個頭箭頭。我用下面做一個簡單的箭頭,但我懷疑這是最簡單的方法:matplotlib簡單和兩個箭頭
import matplotlib.pyplot as plt
arr_width = .009 # I don't know what unit it is here.
fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.plot(range(10))
ax1.arrow(1, 1, 0, .5, width = arr_width, head_width = 3 * arr_width,
head_length = 9 * arr_width)
plt.show()
我無法找到如何使這種方法兩頭箭頭。
的代碼你沒有按供應沒有工作。 – Ffisegydd 2014-09-10 09:26:37