lee-romantic 's Blog
Everything is OK!
Toggle navigation
lee-romantic 's Blog
主页
About Me
归档
标签
jupyter notebook matplotlib画图动态刷新
2018-10-08 11:58:06
954
0
0
lee-romantic
jupyter notebook 是基于网页的,因此默认情况下不会动态画图,哪怕是加了``plot.ion() 和 plt.ioff() ``也不行,可以在开头加入如下代码: ``` import matplotlib %matplotlib inline from IPython import display ``` 然后在需要刷新的地方,也就是画完一次图之后添加(可以放在print()后面) ``` display.clear_output(wait=True) ``` 这样就会在原来基础上继续画图,在网页上形成动态效果.
上一篇:
matplotlib的阻塞和交互及动态画图
下一篇:
matplotlib基础使用
0
赞
954 人读过
新浪微博
微信
腾讯微博
QQ空间
人人网
提交评论
立即登录
, 发表评论.
没有帐号?
立即注册
0
条评论
More...
文档导航
没有帐号? 立即注册