Get data from shown plot in matplotlib and pass it to a probability density function
<p>I have a plot in matplotlib created from an array of data. I have added a button labeled 'PD'. How do I get data from the plot and pass it to a probability density function when the button is clicked?
I've tried going through the documentation but it's not that clear.</p>