code: def updateSpec(self, *args, **kwargs):
          
          if args[0] is None:
              self.stimSpecPlot.clearImg()
              self.responseSpecPlot.clearImg()
          else:
              p = kwargs.pop('plot')
              if p == 'response':
                  self.responseSpecPlot.updateData(*args, **kwargs)
              else:
                  self.stimSpecPlot.updateData(*args, **kwargs)
docs: Updates the spectrogram given by kwarg *'plot'*, which is
          either 'response' or (well actually anything). If no arguments 
          are given, clears both spectrograms.
  
          For other arguments, see: :meth:`SpecWidget.updateData<sparkle.gui.plotting.pyqtgraph_widgets.SpecWidget.updateData>`