code: def plot_edf(sweeps, names):
      """Plots error EDF for each sweep."""
      m, n = 1, 1
      fig, axes = fig_make(m, n, True)
      for i, sweep in enumerate(sweeps):
          k = len(sweep)
          errs = sorted(get_vals(sweep, "error"))
          edf = np.cumsum(np.ones(k) / k)
          label = "{:3d}|{:.1f}|{:.1f}".format(
              k, min(errs), np.mean(errs)
          )
          axes[0].plot(
              errs, edf, "-", alpha=0.8, c=get_color(i), label=label
          )
      axes[0].legend(loc="lower right", title=" " * 10 + "n|min|mean")
      axes[0].set_xlabel("error")
      axes[0].set_ylabel("cumulative prob.")
      fig_legend(fig, n, names, styles="-", markers="")
      return fig
  
file_path: pycls/pycls/sweep/plotting.py
imports: import matplotlib.lines
  import matplotlib.pyplot
  import matplotlib.ticker
  import numpy
  import pycls.models.regnet
  from pycls.sweep.analysis import get_info, get_vals, sort_sweep
label_desc: Use image node_id 7 for calling a global function with example usage: plot_edf(sweeps, names) and returns: fig