code: def mouseMoved(evt):
      pos = evt
      if p1.sceneBoundingRect().contains(pos):
          mousePoint = vb.mapSceneToView(pos)
          index = int(mousePoint.x())
          if index > 0 and index < len(data1):
              label.setText(
                  "<span style='font-size: 12pt'>x=%0.1f,   <span style='color: red'>y1=%0.1f</span>,   <span style='color: green'>y2=%0.1f</span>"
                  % (mousePoint.x(), data1[index], data2[index])
              )
          vLine.setPos(mousePoint.x())
          hLine.setPos(mousePoint.y())
  
imports: import numpy
  import pyqtgraph
label_desc: Use image node_id 3 for calling a global function with example usage: mouseMoved(evt) without return types