Skip to content

Commit

Permalink
fix error with drde overloading, fix latex typesetting
Browse files Browse the repository at this point in the history
  • Loading branch information
slwatkins authored Mar 27, 2023
1 parent bb574b6 commit e72e418
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions darklim/sensitivity/_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e72e418

Please sign in to comment.