So this is a question about a hosted solution. I tried to put some data labels on the dots in the matplotlib scatterplot that I have. I tried to imitate the solution here:
Is there a matplotlib equivalent of datacursormode matlab?
inside def __call__(self, event): I get a failure on the line:
xdata, ydata = event.artist.get_data() AttributeError: 'CircleCollection' object has no attribute 'get_data'
Looking at the docs here: http://matplotlib.sourceforge.net/api/artist_api.html#module-matplotlib.artist
I do not see the get_data () method for Artist. Is this something that is out of date or is something missing? If it was, does anyone know how else to get the equivalent call?
python matplotlib
user926914 Jan 21 2018-12-21T00: 00Z
source share