code: def setLabel(self, text=None, units=None, unitPrefix=None, **args):
          
          show_label = False
          if text is not None:
              self.labelText = text
              show_label = True
          if units is not None:
              self.labelUnits = units
              show_label = True
          if show_label:
              self.showLabel()
          if unitPrefix is not None:
              self.labelUnitPrefix = unitPrefix
          if len(args) > 0:
              self.labelStyle = args
          self.label.setHtml(self.labelString())
          self._adjustSize()
          self.picture = None
          self.update()
docs: overwrites pyqtgraph setLabel