Forums

how to get the original data point from plot

I am fairly new to matplotlib. I have a piece of code which plots a set of data. my requirement is that upon clinking on the data point, I looking to retrieve the original data set of that point. when using "self.f.canvas.mpl_connect('button_press_event',self.onclick)" Command, all it returns was mouse coordinates but not the data can you help me please. cheers

Hi there -- this sounds more like a generic matplotlib question rather than something relating to PythonAnywhere -- perhaps Stack Overflow would be a better place to ask?