python plot 自动更新

https://stackoverflow.com/questions/4098131/how-to-update-a-plot-in-matplotlib

 

测试脚本: