【问题标题】:Matplotlib draw Figures during ginput()Matplotlib 在 ginput() 期间绘制图形
【发布时间】:2020-09-12 05:09:54
【问题描述】:

我在图像上使用 ginput。我想稍微扩展一下 ginput 函数,这样当我单击某个位置时,它会立即在所选点周围绘制一个具有特定尺寸的框。每次点击某处后,有没有办法更新图像?

【问题讨论】:

    标签: python matplotlib select coordinates ginput


    【解决方案1】:

    我遇到了类似的问题,and found the solution in this post - 您可以在绘制框后使用 pause 命令强制更新,这会强制更新:

    plt.pause(0.05)
    

    【讨论】:

      猜你喜欢
      • 2020-02-28
      • 2018-10-08
      • 2015-04-24
      • 1970-01-01
      • 2015-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多