clean-up binning problem for single_photon plot