diff --git a/darklim/sensitivity/_plotting.py b/darklim/sensitivity/_plotting.py index 3fd50e7..8971dfa 100644 --- a/darklim/sensitivity/_plotting.py +++ b/darklim/sensitivity/_plotting.py @@ -206,15 +206,15 @@ def add_drde(self, masses, sigmas, tm="Si", npoints=1000, res=None, gauss_width= xvals = np.linspace(self._energy_range[0], self._energy_range[1], npoints) for m, sig in zip(masses, sigmas): - drde = drde(xvals, m, sig, tm=tm) - label = f"DM Mass = {m:.2f} GeV, σ = {sig:.2e} cm$^2$" + drde_plot = drde(xvals, m, sig, tm=tm) + label = f"DM Mass = {m:.2f} GeV, $\sigma$ = {sig:.2e} cm$^2$" if res is not None: - drde = gauss_smear(xvals, drde, res, gauss_width=gauss_width) + drde_plot = gauss_smear(xvals, drde_plot, res, gauss_width=gauss_width) label += f"\nWith {gauss_width}$\sigma_E$ Smearing" self.ax.plot( xvals, - drde, + drde_plot, linestyle='--', label=label, **kwargs,