美文网首页
【matplotlib】 之 清理、清除 axes 和 figu

【matplotlib】 之 清理、清除 axes 和 figu

作者: Rainysong | 来源:发表于2019-04-30 15:38 被阅读0次

plt.cla() # 清除axes,即当前 figure 中的活动的axes,但其他axes保持不变。
plt.clf() # 清除当前 figure 的所有axes,但是不关闭这个 window,所以能继续复用于其他的 plot。
plt.close() # 关闭 window,如果没有指定,则指当前 window。

https://blog.csdn.net/tz_zs/article/details/81393098

相关文章

网友评论

      本文标题:【matplotlib】 之 清理、清除 axes 和 figu

      本文链接:https://www.haomeiwen.com/subject/vlsvnqtx.html