Remove obsolete code for plotting