I\'m trying to write something that lets me remove lines by clicking the plot. I\'ll later try deleting the lines by clicking on them. For now, I\'ve simplified the code as much