python - Matplotlib:如何只显示一个图形而不关闭其他图形?
问题描述
有没有可能做这样的事情
import matplotlib.pyplot as plt
fig_1, ax = plt.subplots()
ax.plot([1,2,2,3])
fig_2, ax = plt.subplots()
ax.plot([4,3,2,2])
fig_2.show()
在 Python 的 matplotlib 中?我只想显示fig_2
而不必关闭fig_1
?
解决方案
推荐阅读
- python - 删除工作表中的行
- express - 秘密应该在节点 js express-jwt auth 中设置
- javascript - React JS - 如何将方法从使用上下文的组件移动到另一个模块
- jsp - JSP不保持缩进
堵塞
- php - 只需获取数字到数字表即可在联系人列表中查看
- rtsp - “参见 [H4.3]”在 RFC 中是什么意思?
- performance - 为什么这个睡眠功能比它应该花费的时间长得多?
- apache-spark - 我们可以从 Spark 的 StructType 为 Hive 创建一个 avsc 文件吗?
- python - 导入 Scipy.io 时出错我正在使用 python 3.5.0 这个错误出来了
- python - 如何使用 Python 替换 PE 文件中的指令?