Added API to clear the plot