def METHOD_NAME(self, counts: Optional[np.ndarray], bins: Optional[np.ndarray]):
    """Set histogram of data to use for autoscale"""
    self._histogram = None if counts is None or bins is None else (counts, bins)
    self._autoscaleButton.setEnabled(self._histogram is not None)