code: def appendData(self, bins, repnum=None):
          
          # only if the last sample was above threshold, but last-1 one wasn't
          bins[bins >= len(self._counts)] = len(self._counts) -1
          bin_totals = np.bincount(bins)
          self._counts[:len(bin_totals)] += bin_totals
          self.histo.setOpts(height=np.array(self._counts))
docs: Increases the values at bins (indexes)
  
          :param bins: bin center values to increment counts for, to increment a time bin more than once include multiple items in list with that bin center value
          :type bins: numpy.ndarray