title: Python : Mouse click coordinates as simply as possible
body: <p>I'd like to code an interactive Bezier curve generator, the only inputs being the mouse click coordinates on a graph (with matplotlib.pyplot)</p>
  
  <p>Thus, I'd like to know how to get these coordinates and how to stack them in two lists for x-axis and y-axis using <code>class</code> and <code>self.functions</code> as simply as possible.</p>
  
  <p>Thank you !</p>
  
  <p>Bipattes</p>