factor out getting limits of histograms for plotting into plotting.utils.get_limits