Updating the x-axis values using matplotlib animation

后端 未结 3 1561
执念已碎
执念已碎 2020-12-09 12:14

I am trying to use matplotlib.ArtistAnimation to animate two subplots. I want the x-axis to increase in value as the animation progresses, such that the total l

3条回答
  •  孤街浪徒
    2020-12-09 12:51

    If you are using blitting, you can call pyplot.draw() to redraw the entire figure, each time you change y/x axis.

    This updates whole figure, so is relatively slow, but it's acceptable if you don't call it many items.

提交回复
热议问题