我有一組座標對(x,y),我想用quiver
來繪製這個組。我試圖檢查其他相關問題,但我仍然在爲此而苦苦掙扎。使用顫抖來繪製2D矢量地圖
想象我想繪製4個向量與兩個數組與x和y座標:
x = arange(0, 3)
y = arange(0, 3)
# vectors x coordinate values
fx = (0, 1, 1, 2)
# vectors y coordinate values
fy = (1, 0, 1, 2)
X, Y = meshgrid(x, y)
Q = quiver(X, Y, fx, fy)
結果不是4,但9載體,爲什麼呢?
爲什麼你標記信號處理?這個問題實際上是否適用於這個領域?只是要求好奇 – 2015-01-20 19:35:20
你還需要填寫你的fx和fy。有形狀需要匹配X,Y的形狀。 – tacaswell 2015-01-22 05:57:55