Skip to content

Commit

Permalink
Add offset to annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Oct 20, 2023
1 parent b7047f7 commit e0b9518
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion python/lsst/the/monster/measure_offsetmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,22 @@ def gauss(x, *p):
plt.xlabel(f"{minuend_info.name} - {subtrahend_info.name} {band} (mmag)")
plt.ylabel(f"Number of nside={offset_band.nside_sparse} pixels")
plt.annotate(
r"$\sigma = %.1f\,\mathrm{mmag}$" % (coeff[2]),
r"$\mu = %.1f\,\mathrm{mmag}$" % (coeff[1]),
(0.99, 0.99),
fontsize=14,
xycoords="axes fraction",
ha="right",
va="top",
)
plt.annotate(
r"$\sigma = %.1f\,\mathrm{mmag}$" % (coeff[2]),
(0.99, 0.92),
fontsize=14,
xycoords="axes fraction",
ha="right",
va="top",
)

plt.savefig(f"{minuend_info.name}-{subtrahend_info.name}_highglat_hist_{band}.png")


Expand Down

0 comments on commit e0b9518

Please sign in to comment.