title: Getting matplotlib to render points clicked with a mouse.
body: <p>I am new to Gui programming, so if this question has been repeated elsewhere using proper terminology I apologize. 
  Is it possible to make <strong><em>interactive</em></strong> geometric animations with matplotlib? In particular, I want to embed an interactive Matplotlib window within a Tkinter frame to test out several variants of the same algorithm. </p>
  
  <p>Here is a typical usage scenario for which I want to write an interactive 
  program as described above: Say I want to test a triangulation algorithm for point-sets in the 2-d plane. </p>
  
  <p>When I run my <code>new_triangulation_algorithm.py</code> script, I would like to open up an interactive tkinter frame having an embedded matplotlib window, where the user "mouses-in" his/her points by clicking on, say, 20 different points -- every time a point is selected, a thick blue dot appears at that position. I know Matplotlib "knows" the coordinates of the point when I hover my mouse cursor over it since I always see it displayed in the status bar of my plots. </p>
  
  <p>But I don't know how to input a point at that position with a mouse. </p>
  
  <p>The second panel of my Tkinter frame would then contain several buttons, each button corresponding a different triangulation algorithm which I would like to animate on a given point set.  </p>
  
  <p>As the algorithm proceeds, I would like the matplotlib window to get  refreshed to show the current state of the algorithm. I presume I would have to use Matplotlib's animation feature to do this, but I am not sure about 
  this since Matplotlib will have to be embedded in a Tkinter frame. </p>
  
  <p>In future, I would like not only to input points, but also segments, circles, rectangles, but I would want to master a basic example with points 
  as described above. </p>