Matplotlib animation either freezes after a few frames or just doesn't work

前端 未结 8 1327
悲哀的现实
悲哀的现实 2020-12-18 06:04

I\'ve been trying for hours to get this simple script working, but nothing I do seems to help. It\'s a slight modification of the most basic animated plot sample code from t

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 06:55

    Generally you can't use show() and draw() like this. As the Posts are suggesting, you need a small GUI loop, just look at the Animations examples on the Matplotlib page.

提交回复
热议问题