Initially the fits file was loaded into python, the image was then projected onto the x-axis to obtain a spectrum. This was plotted with N_{adu} against position, so from the eqaution N_{pe} = 2.3*N_{adu} the data was plotted against N_{pe}.
--
JosephBayley - 13 Oct 2015