From: Pierre GM <pgm...@gm...> - 2006-11-09 02:14:45
|
> I have a GUI written in wxPython, the main portion of it is a > matplotlib canvas. There is a tree control on the left with > checkboxes: if the user checks a checkbox, I add a line on the plot. > So far so good. The problem comes when the user *un-checks* the > checkbox. I would like to remove the line from the plot, but the only > way I found to do it is to do: To suppress the last line drawn: del(gca().lines[-1]) (replace gca() by the handle of the subplot you're acting on) |