adding clf to clear previous plot and save a new one