所以这是一个关于已发布解决方案的问题。我试图在我的matplotlib散点图上放置一些数据标签。我试图模仿这里的解决方案:是否有MATLAB的datacursormode的matplotlib等效物? 在
在这里查看文档:http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.artist,我没有找到Artist的
def __call__(self,event):
中,我在以下行处失败了:xdata, ydata = event.artist.get_data()
AttributeError: 'CircleCollection' object has no attribute 'get_data'
在这里查看文档:http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.artist,我没有找到Artist的
get_data()
方法。这是因为它已被弃用了还是我错过了什么?如果已经被弃用,有人知道如何获得等效的调用吗?