最近需要使用matplot库来进行鼠标响应,在图片上点击鼠标左键获取点的位置。
先在网上找了些代码运行,发现点击鼠标后没反映,然后找了解决方法。
我用的是Windows :
Settings / Tools / Python Scientific / Show Plots in Toolwindow,取消勾。
MAC系统下:
Preferences / Tools / Python Scientific / Show Plots in Toolwindow,去对勾。
参考:https://blog.youkuaiyun.com/qq_23944915/article/details/84780820