Skip to content

Commit

Permalink
balmer.HbHgHd_fits: Label axes (iss #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Jun 10, 2020
1 parent 147bddf commit 57605f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Metallicity_Stack_Commons/plotting/balmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ def HbHgHd_fits(fitspath, out_pdf_prefix='HbHgHd_fits',
ax_arr[row][1].set_xticklabels([])
ax_arr[row][2].set_xticklabels([])

if row == 1:
ax_arr[row][0].set_ylabel(r"Flux [10$^{-17}$ erg s$^{-1}$ cm$^{-2}$ $\AA^{-1}$]",
fontsize=12)

if row == n_rows-1:
ax_arr[row][1].set_xlabel(r"Wavelength [$\AA$]", fontsize=12)

if ii % n_rows == n_rows-1:
plt.subplots_adjust(left=0.15, right=0.95, bottom=0.1, top=0.95)
fig.savefig(pdf_pages, format='pdf')
Expand Down

0 comments on commit 57605f1

Please sign in to comment.