【发布时间】:2020-09-12 05:09:54
【问题描述】:
我在图像上使用 ginput。我想稍微扩展一下 ginput 函数,这样当我单击某个位置时,它会立即在所选点周围绘制一个具有特定尺寸的框。每次点击某处后,有没有办法更新图像?
【问题讨论】:
标签: python matplotlib select coordinates ginput
我在图像上使用 ginput。我想稍微扩展一下 ginput 函数,这样当我单击某个位置时,它会立即在所选点周围绘制一个具有特定尺寸的框。每次点击某处后,有没有办法更新图像?
【问题讨论】:
标签: python matplotlib select coordinates ginput
我遇到了类似的问题,and found the solution in this post - 您可以在绘制框后使用 pause 命令强制更新,这会强制更新:
plt.pause(0.05)
【讨论】: