def METHOD_NAME(parameters, label="", true_law=None, title=""):
    """Plot energies, training points and CDF for a set of energies given a set of parameters"""
    energies = perform_adiabatic(
        params=parameters,
        finalT=finalT,
        h0=h0,
        h1=h1,
        obs_target=obs_target,
    )
    plt.title(title)
    plt.plot(xarr, -np.array(cdf), label="eCDF", color="black", lw=1, ls="--")
    plt.plot(
        xarr, -np.array(energies), label=label, color="purple", lw=2, alpha=0.8
    )
    plt.plot(
        xarr[idx_training],
        -np.array(cdf_training),
        "o",
        label="Training points",
        color="orange",
        alpha=0.85,
        markersize=8,
    )
    if true_law != None:
        plt.plot(xarr, true_law, c="orange", lw=1, ls="--")
    plt.xlabel("x")
    plt.ylabel("cdf")
    plt.legend()
    plt.show()