code: def setTargetRange(self, targetRange, padding=None):
          
          # viewBox.setRange doesn't accept an axis number :-(
          if self.axisNumber == X_AXIS:
              xRange, yRange = targetRange, None
          else:
              xRange, yRange = None, targetRange
  
          # Do not set disableAutoRange to True in setRange; it triggers 'one last' auto range.
          # This is why the viewBox' autorange must be False at construction.
          self.viewBox.setRange(xRange = xRange, yRange=yRange, padding=padding,
                                update=False, disableAutoRange=False)
docs: Sets the range of the target.