pycharm中matplotlib.pyplot ginput()中获得鼠标点击的位置失败

最近需要使用matplot库来进行鼠标响应,在图片上点击鼠标左键获取点的位置。

先在网上找了些代码运行,发现点击鼠标后没反映,然后找了解决方法。

我用的是Windows :

Settings / Tools / Python Scientific / Show Plots in Toolwindow,取消勾。

MAC系统下:

Preferences / Tools / Python Scientific / Show Plots in Toolwindow,去对勾。

 

参考:https://blog.csdn.net/qq_23944915/article/details/84780820

转载自:https://blog.csdn.net/winner_looser/article/details/88013878

You may also like...