def METHOD_NAME(self, d):
    """
    Go forwards or backwards in the stored history of zoom events in the graph. Has no effect if
    there is no history yet. Propagates to all stacked views
    Parameters
    ----------
    d: int
        1 to go forwards, -1 to go backwards, 0 to reset to the original auto-scale
    """
    self.sigHistoryChanged.emit(d)
    if len(self.axHistory) != 0:
        if d == -1 and self.axHistoryPointer != -1:
            self.axHistoryPointer -= 1
        elif d == 1 and self.axHistoryPointer != len(self.axHistory) - 1:
            self.axHistoryPointer += 1
        elif d == 0:
            self.axHistoryPointer = -1  # Reset to the beginning
        if self.axHistoryPointer == -1:
            self.enableAutoRange()
        else:
            self.showAxRect(self.axHistory[self.axHistoryPointer])