Skip to content
Snippets Groups Projects
Commit e7d9c8f6 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

backwards_ecal: smooth fit plot

parent fcc6efd0
No related branches found
No related tags found
No related merge requests found
......@@ -202,12 +202,15 @@ for clf_label, sigma_rel_FWHM_cb in sigmas_rel_FWHM_cb.items():
ls="none",
label=f"{clf_label}"
)
xmin = np.min(energy_values[cond])
xmax = np.max(energy_values[cond])
xs = np.arange(xmin, xmax, 0.1)
plt.plot(
energy_values[cond],
f(energy_values[cond], *par),
xs,
f(xs, *par),
ls="--",
lw=0.5,
label=f"{clf_label}, ${np.ceil(stochastic * 10) / 10:.1f}\% / \sqrt{{E}} \oplus {np.ceil(constant * 10) / 10:.1f}\%$",
label=f"Functional fit: ${np.ceil(stochastic * 10) / 10:.1f}\% / \sqrt{{E}} \oplus {np.ceil(constant * 10) / 10:.1f}\%$",
)
plt.fill_between(
energy_values,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment