better ps cc plots
This commit is contained in:
parent
faeed99b09
commit
816e08b218
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue