Cleanup in plotter