Added the clear() function to the Plotter class.