From 816e08b218eed6a026669cb5822685277edf9ae9 Mon Sep 17 00:00:00 2001 From: Mayeul Aubin Date: Fri, 9 May 2025 11:24:57 +0200 Subject: [PATCH] better ps cc plots --- analysis/power_spectrum.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/analysis/power_spectrum.py b/analysis/power_spectrum.py index cb8ab73..9d44005 100644 --- a/analysis/power_spectrum.py +++ b/analysis/power_spectrum.py @@ -148,7 +148,7 @@ def plot_power_spectra(filenames, ax.set_ylim(ylims) if yticks is not None: ax.set_yticks(yticks) - ax.set_xlabel(r'$k$ [$h/\mathrm{Mpc}$]', labelpad=-10) + ax.set_xlabel(r'$k$ [$h/\mathrm{Mpc}$]', labelpad=-0) if Pk_ref is not None: ax.set_ylabel(r'$P(k)/P_\mathrm{ref}(k)$') @@ -226,7 +226,7 @@ def plot_cross_correlations(filenames_A, ax.set_ylim(ylims) if yticks is not None: ax.set_yticks(yticks) - ax.set_xlabel(r'$k$ [$h/\mathrm{Mpc}$]', labelpad=-10) + ax.set_xlabel(r'$k$ [$h/\mathrm{Mpc}$]', labelpad=-0) ax.set_ylabel('$R(k)$') if bound1 is not None: @@ -306,6 +306,7 @@ if __name__ == "__main__": if args.power_spectrum and args.cross_correlation: import matplotlib.pyplot as plt fig, axes = plt.subplots(2, 1, figsize=(8,8)) + fig.subplots_adjust(hspace=0.3) plot_power_spectra(filenames=filenames, labels=args.labels, colors=args.colors,