Skip to content

Commit

Permalink
test_radialI: add plot ax labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Nov 1, 2023
1 parent c61f864 commit 8f1a610
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/onedim_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8f1a610

Please sign in to comment.