title: Removing points and lines from MATLAB plot
body: <p>I have a figure where the user can click into. The coordinates of the click will get stored in two vectors x and y. Than I plot the newly created point via <code>plot(x_new, y_new)</code> and further there's a context me nu being created for this point which has a label <code>delete point</code>.When clicking on it, I simply remove the corresponding values of the <code>x</code> and <code>y</code> vectors.</p>
  
  <p>Now I need to somehow delete the plotted point. Currently I'm doing it this way: When deleting points, I simply clear the current axes <code>cla</code> and redraw all points at once. But somehow I feel this isn't the best method since I want to also display text and some connection lines between the points on user input and it could get pretty slow when all the stuff needs to be redrawn everytime...</p>
  
  <p>So I'm wondering whats the best way to do it? 
  Would it be good to simply store the returning plot-handles for each point and than delete those objects when deleting the point? Same for connection lines and texts?</p>
  
  <p>Thanks!</p>