class_docstr: Waterfall plot
docstr: Recalculate waterfall plot
docstr_tok: ["Recalculate","waterfall","plot"]
code: def recalculate_plot(self, data_storage):
      """Recalculate waterfall plot"""
      if data_storage.x is None:
          return
  
      self.waterfallImg.setImage(
          data_storage.history.buffer[-self.counter :].T,
          autoLevels=False,
          autoRange=False,
      )
      self.waterfallImg.setPos(
          data_storage.x[0],
          -self.counter
          if self.counter < self.history_size
          else -self.history_size,
      )
      self.histogram.setImageItem(self.waterfallImg)
  
imports: import collections, math
  from Qt import QtCore
  import pyqtgraph
label_desc: Use image node_id 5 for calling the WaterfallPlotWidget obj's underlying member method code with example usage: obj.recalculate_plot(data_storage) without return types