3
所以這是一個關於發佈解決方案的問題。我試圖把一些數據標籤放在我有的matplotlib scatterplot中的點上。我試圖模仿這裏的解決方案:matplotlib地塊點的標籤
Is there a matplotlib equivalent of MATLAB's datacursormode?
內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
我看不出有什麼方法GET_DATA ()爲藝術家。這只是已被棄用或我錯過了什麼嗎?如果有的話,任何人都知道如何獲得同等電話?
哎呀,我怎麼錯過了。我想我輕輕一笑,看到了合格的xdata和ydata裁判。謝謝 – user926914