How to erase a plot