def gp_xfac():
<EOL>inDir, outDir = getWorkDirs()<EOL>data = OrderedDict()<EOL>for file in os.listdir(inDir):<EOL><INDENT>info = os.path.splitext(file)[<NUM_LIT:0>].split('<STR_LIT:_>')<EOL>key = '<STR_LIT:U+0020>'.join(info[:<NUM_LIT:2>] + ['<STR_LIT::>',<EOL>'<STR_LIT>'.join([<EOL>str(float(s)/<NUM_LIT>) for s in info[-<NUM_LIT:1>][:<NUM_LIT:7>].split('<STR_LIT:->')<EOL>]) + '<STR_LIT>'<EOL>])<EOL>file_url = os.path.join(inDir, file)<EOL>data[key] = np.loadtxt(open(file_url, '<STR_LIT:rb>')).reshape((-<NUM_LIT:1>,<NUM_LIT:5>))<EOL>data[key][:, <NUM_LIT:0>] *= shift.get(key, <NUM_LIT:1>)<EOL><DEDENT>logging.debug(data) <EOL>nSets = len(data)<EOL>make_plot(<EOL>data = list(data.values()),<EOL>properties = [ getOpts(i) for i in range(nSets) ],<EOL>titles = list(data.keys()), <EOL>name = os.path.join(outDir, '<STR_LIT>'),<EOL>key = [ '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>' ],<EOL>ylabel = '<STR_LIT>',<EOL>xlabel = '<STR_LIT>',<EOL>yr = [<NUM_LIT:0.5>, <NUM_LIT>], size = '<STR_LIT>',<EOL>rmargin = <NUM_LIT>, tmargin = <NUM_LIT>, bmargin = <NUM_LIT>,<EOL>xlog = True, gpcalls = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'<EOL>],<EOL>labels = { '<STR_LIT>': [<NUM_LIT:0.5>, <NUM_LIT:0.5>, False] },<EOL>lines = { '<STR_LIT>': '<STR_LIT>' }<EOL>)<EOL>return '<STR_LIT>'<EOL>
example using QM12 enhancement factors

    - uses `gpcalls` kwarg to reset xtics
    - numpy.loadtxt needs reshaping for input files w/ only one datapoint
    - according poster presentations see QM12_ & NSD_ review

    .. _QM12: http://indico.cern.ch/getFile.py/access?contribId=268&sessionId=10&resId=0&materialId=slides&confId=181055
    .. _NSD: http://rnc.lbl.gov/~xdong/RNC/DirectorReview2012/posters/Huck.pdf

    .. image:: pics/xfac.png
       :width: 450 px

    :ivar key: translates filename into legend/key label
    :ivar shift: slightly shift selected data points