better ps cc plots

This commit is contained in:
Mayeul Aubin 2025-05-09 11:24:57 +02:00
parent faeed99b09
commit 816e08b218

View file

@ -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,