code: def mouseMotion(self, event):
      if self.state == "":
          return
      x, y = event.xdata, event.ydata
      if x is None:  # outside the Axes
          return
      x0, y0, f0Init, AInit = self.mouseInfo
      self.A.set(AInit + (AInit * (y - y0) / y0), self)
      if self.state == "frequency":
          self.f0.set(f0Init + (f0Init * (x - x0) / x0))
      elif self.state == "time":
          if (x - x0) / x0 != -1.0:
              self.f0.set(
                  1.0 / (1.0 / f0Init + (1.0 / f0Init * (x - x0) / x0))
              )
  
imports: import wx
  import numpy
  from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
  from matplotlib.figure import Figure
label_desc: Use image node_id 5 for calling the FourierDemoFrame obj's underlying member method code with example usage: obj.mouseMotion(event) without return types