'Set the range of values displayed by the axis.
Usually this is handled automatically by linking the axis to a ViewBox with :func:`linkToView <pyqtgraph.AxisItem.linkToView>`'

def setRange(self, mn, mx):

    if (any(np.isinf((mn, mx))) or any(np.isnan((mn, mx)))):
        raise Exception(('Not    setting    range    to    [%s,    %s]' % (str(mn), str(mx))))
    self.range = [mn, mx]
    if self.autoSIPrefix:
        self.updateAutoSIPrefix()
    self.picture = None
    self.update()
