【问题标题】:Show multiple images in interactive mode python在交互模式python中显示多张图像
【发布时间】:2019-02-02 02:30:55
【问题描述】:

我在一个交互式程序中,它通过单击图像周围的点来标记图像的特定部分。我想在不同的图像中显示分割的部分。似乎 plt.imshow(image) 在交互式环境中效果不佳,我无法将其关闭,因为然后我无法处理主图像。有没有更好的命令以交互模式分别显示特定数组。

谢谢

【问题讨论】:

标签: python-3.x matplotlib image-processing pytorch


【解决方案1】:

你转过matplotlibinteractive mode on了吗?

import matplotlib.pyplot as plt
plt.ion()  # turning on interactive mode

【讨论】:

  • 它已经打开了。实际上问题是我必须将其关闭才能打印第二张图像。
  • @hamid.khb 您可以在第二个图中绘制图像,或使用plt.subplot
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-05-10
  • 1970-01-01
  • 1970-01-01
  • 2017-05-26
  • 2019-10-12
相关资源
最近更新 更多