相关疑难解决方法(0)

用Python绘制动画箭头

I am trying to animate a vector such as wind in Python. I tried to use quiver function in pylab and in combination with matplotlib.animation from matplotlib. However, the result says 'QuiverKey' object is not subscriptable. I think that it is because I don't understand fully about these two functions or just these two functions don't match together. Below is my code, it is actually the combination between quiver and animation functions from matplotlib.

def update_line(num, data, line):
    line.set_data(data[...,:num]) …
Run Code Online (Sandbox Code Playgroud)

python animation matplotlib

11
推荐指数
1
解决办法
9224
查看次数

标签 统计

animation ×1

matplotlib ×1

python ×1