def magphase_files(xscript=0, yscript='d[1]+1j*d[2]', eyscript=None, exscript=None, paths=None, g=None, **kwargs):
    """
    This will load a bunch of data files, generate data based on the supplied
    scripts, and then plot the ydata's magnitude and phase versus xdata.

    Parameters
    ----------
    xscript=0 
        Script for x data
    yscript='d[1]+1j*d[2]'  
        Script for y data
    eyscript=None  
        Script for y error
    exscript=None
        Script for x error
    paths=None
        List of paths to open.
    g=None                                    
        Optional dictionary of globals for the scripts

    See spinmob.plot.magphase.data() for additional optional arguments.
    See spinmob.data.databox.execute_script() for more information about scripts.
    
    Common additional parameters
    ----------------------------
    filters="*.*" 
        Set the file filters for the dialog.

    """
    return files(xscript, yscript, eyscript, exscript, plotter=magphase_databoxes, paths=paths, g=g, **kwargs)
This will load a bunch of data files, generate data based on the supplied
    scripts, and then plot the ydata's magnitude and phase versus xdata.

    Parameters
    ----------
    xscript=0 
        Script for x data
    yscript='d[1]+1j*d[2]'  
        Script for y data
    eyscript=None  
        Script for y error
    exscript=None
        Script for x error
    paths=None
        List of paths to open.
    g=None                                    
        Optional dictionary of globals for the scripts

    See spinmob.plot.magphase.data() for additional optional arguments.
    See spinmob.data.databox.execute_script() for more information about scripts.
    
    Common additional parameters
    ----------------------------
    filters="*.*" 
        Set the file filters for the dialog.