code: def dotest_1d(order, beta):
      fm = FadingMemoryFilter(x0=0, dt=1, order=order, beta=beta)
  
      xs = [x for x in range(0, 50)]
  
      fxs = []
      for x in xs:
          data = x + randn() * 3
          fm.update(data)
          plt.scatter(x, fm.x[0], c="r")
          fxs.append(fm.x[0])
          plt.scatter(x, data, c="b")
  
      plt.plot(fxs, c="r")
  
file_path: filterpy/filterpy/memory/tests/test_fading_memory.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import matplotlib.pyplot
  from numpy.random import randn
  import numpy
  from filterpy.memory import FadingMemoryFilter
  from filterpy.gh import GHKFilter
label_desc: Use image node_id 2 for calling a global function with example usage: dotest_1d(order, beta) without return types