code: def realimag_function(f='1.0/(1+1j*x)', xmin=-1, xmax=1, steps=200, p='x', g=None, erange=False, **kwargs):
      
      function(f, xmin, xmax, steps, p, g, erange, plotter=realimag_data, **kwargs)
docs: Plots function(s) real and imaginary parts over the specified range.
  
      Parameters
      ----------
      f='1.0/(1+1j*x)'                 
          Complex-valued function or list of functions to plot. 
          These can be string functions or single-argument python functions;
          additional globals can be supplied by g.
      xmin=-1, xmax=1, steps=200   
          Range over which to plot and how many points to plot
      p='x'
          If using strings for functions, p is the independent parameter name.
      g=None               
          Optional dictionary of extra globals. Try g=globals()!
      erange=False              
          Use exponential spacing of the x data?
  
      See spinmob.plot.xy.data() for additional optional keyword arguments.