How am I able to discard my previous plot if my program is on a loop and I want it to plot a new graph, as otherwise it comes up with an error or i have two different datasets o