Method for plotting mass spectra