code: def updateData():
      global i
      global textpos
  
      ## Display the new data set
      color_noise = np.sin(i * 2 * np.pi * color_noise_freq)
      new_x = x
      new_y = y + wave_amplitude * np.cos(x / wave_length + i)
      new_z = (
          np.exp(-((x - np.cos(i * color_speed) * xn) ** 2) / 1000)[
              :-1, :-1
          ]
          + color_noise
      )
      pcmi_auto.setData(new_x, new_y, new_z)
      pcmi_consistent.setData(new_x, new_y, new_z)
  
      i += wave_speed
      framecnt.update()
  
imports: import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtCore
  from utils import FrameCounter
label_desc: Use image node_id 1 for calling a global function with example usage: updateData() without return types