Upgrade of the Plotting function in TOFsprectrum