I have the following lists representing energy spectra that need to be subtracted from each other to produce a difference spectrum. This is how all the spectra look before the necessary shift (I threw a spline fit through the arrays): The problem is that I need to preform an energy shift to the black spectrum before the subtraction so that the first peaks line up. I usually construct my difference spectrum array like this: Where the first column is energy and the second column is intensity.