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(): ...@@ -202,12 +202,15 @@ for clf_label, sigma_rel_FWHM_cb in sigmas_rel_FWHM_cb.items():
ls="none", ls="none",
label=f"{clf_label}" 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( plt.plot(
energy_values[cond], xs,
f(energy_values[cond], *par), f(xs, *par),
ls="--", ls="--",
lw=0.5, 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( plt.fill_between(
energy_values, energy_values,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment