code: def update(frame):
      # for each frame, update the data stored on each artist.
      x = t[:frame]
      y = z[:frame]
      # update the scatter plot:
      data = np.stack([x, y]).T
      scat.set_offsets(data)
      # update the line plot:
      line2.set_xdata(t[:frame])
      line2.set_ydata(z2[:frame])
      return (scat, line2)
  
imports: import matplotlib.pyplot
  import numpy
  import matplotlib.animation
label_desc: Use image node_id 1 for calling a global function with example usage: update(frame) and returns: scat,  line2