From 8f1a610ca37b2809534ec5116e704a296c7a1dba Mon Sep 17 00:00:00 2001 From: Jeff Jennings Date: Wed, 1 Nov 2023 00:42:43 -0400 Subject: [PATCH] test_radialI: add plot ax labels --- test/onedim_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/onedim_test.py b/test/onedim_test.py index 27389ec9..253b633b 100644 --- a/test/onedim_test.py +++ b/test/onedim_test.py @@ -13,12 +13,15 @@ def test_radialI(mock_1d_image_model, tmp_path): fig, ax = plt.subplots(ncols=2) - plot_image(i2d, extent=coords.img_ext, ax=ax[0], clab='Jy sr$^{-2}$') + plot_image(i2d, extent=coords.img_ext, ax=ax[0], clab='Jy / sr') ax[0].title('AS 209-like profile.\nGeometry: {:}'.format(geom)) ax[1].plot(r, i, 'k', label='truth') ax[1].plot(rtest, itest, 'r.-', label='result') + + ax[1].set_xlabel('r [arcsec]') + ax[1].set_ylabel('I [Jy / sr]') fig.savefig(tmp_path / "test_radialI.png", dpi=300) plt.close("all")