Fitting a histogram

hi thanks for the reply! I feel this is on the hackier side of things…