def xy_files(xscript=0, yscript='d[1]', 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 versus xdata.

    Parameters
    ----------
    xscript=0 
        Script for x data
    yscript='d[1]'  
        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.xy.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=xy_databoxes, paths=paths, g=g, **kwargs)