def baseline(index, method, ax, runs, args):
    assert all(((run.xs is None) for run in runs))
    ys = np.array([run.ys for run in runs])
    (mean, std) = (ys.mean(), ys.std())
    color = args.colors[method]
    kw = dict(color=color, zorder=((500 - (20 * index)) - 1), alpha=0.1, linewidths=0)
    ax.fill_between([(- np.inf), np.inf], ([(mean - std)] * 2), ([(mean + std)] * 2), **kw)
    kw = dict(ls='--', color=color, zorder=((5000 - (10 * index)) - 1))
    ax.axhline(mean, label=method, **kw)
def baseline(index, method, ax, runs, args):
    assert all(((run.xs is None) for run in runs))
    ys = np.array([run.ys for run in runs])
    (mean, std) = (ys.mean(), ys.std())
    color = args.colors[method]
    kw = dict(color=color, zorder=((500 - (20 * index)) - 1), alpha=0.1, linewidths=0)
    ax.fill_between([(- np.inf), np.inf], ([(mean - std)] * 2), ([(mean + std)] * 2), **kw)
    kw = dict(ls='--', color=color, zorder=((5000 - (10 * index)) - 1))
    ax.axhline(mean, label=method, **kw)