docs: def add(self, histogram: Histogram1D):
          """Add a histogram to the collection."""
          if self.binning and not self.binning == histogram.binning:
              raise ValueError("Cannot add histogram with different binning.")
          self.histograms.append(histogram)