code: def update():
      global curve, data, ptr, p6
      curve.setData(data[ptr % 10])
      if ptr == 0:
          p6.enableAutoRange(
              "xy", False
          )  ## stop auto-scaling after the first data set is plotted
      ptr += 1
  
imports: import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtCore
label_desc: Use image node_id 1 for calling a global function with example usage: update() without return types