From 5e107d5913cb0d85d75c31803f6022d79fd22b96 Mon Sep 17 00:00:00 2001 From: Chun Ly Date: Fri, 30 Apr 2021 14:05:16 -0700 Subject: [PATCH] HbHgHd_fits: Set y-axis range the same for all subplots --- Metallicity_Stack_Commons/plotting/balmer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Metallicity_Stack_Commons/plotting/balmer.py b/Metallicity_Stack_Commons/plotting/balmer.py index 32e66bc0..97a5adf4 100644 --- a/Metallicity_Stack_Commons/plotting/balmer.py +++ b/Metallicity_Stack_Commons/plotting/balmer.py @@ -252,8 +252,9 @@ def HbHgHd_fits(fitspath: str, out_pdf_prefix: str ='HbHgHd_fits', label='Delta Fit') ax_arr[row][0].set_xlim(4050, 4150) - ax_arr[row][0].set_ylim(0, 1.6) - + for p in [0, 1, 2]: + ax_arr[row][p].set_ylim(0, 1.6) + ax_arr[row][0].annotate(txt2, [0.95, 0.95], xycoords='axes fraction', va='top', ha='right', fontsize='5') ax_arr[row][0].plot(wave[Hd_fit_dict['idx_sig']], Hd_fit_dict['residual'],