code: def submit(expression):
      """
      Update the plotted function to the new math *expression*.
  
      *expression* is a string using "t" as its independent variable, e.g.
      "t ** 3".
      """
      ydata = eval(expression, {"np": np}, {"t": t})
      l.set_ydata(ydata)
      ax.relim()
      ax.autoscale_view()
      plt.draw()
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.widgets import TextBox
label_desc: Use image node_id 1 for calling a global function with example usage: submit(expression) without return types