Skip to content

Commit

Permalink
off_diag plots
Browse files Browse the repository at this point in the history
  • Loading branch information
zatkins2 committed Oct 21, 2024
1 parent 612b968 commit 47261eb
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
plot_dir = "plots/x_ar_cov"

pspy_utils.create_directory(plot_dir)
pspy_utils.create_directory(plot_dir + '/off_diags')

binning_file = d["binning_file"]
lmax = d["lmax"]
Expand Down Expand Up @@ -167,7 +168,13 @@
plt.legend()
plt.title(f"Cov({name_i}_{spec_i}, {name_j}_{spec_j})\n{kern}")
if args.iStart is not None:
plt.savefig(os.path.join(plot_dir, f"GP_MC_covmat_smooth_{name_i}_{spec_i}_{name_j}_{spec_j}_{iStart}_{iStop}.png"))
if i == j:
plt.savefig(os.path.join(plot_dir, f"GP_MC_covmat_smooth_{name_i}_{spec_i}_{name_j}_{spec_j}_{iStart}_{iStop}.png"))
else:
plt.savefig(os.path.join(plot_dir, 'off_diags', f"GP_MC_covmat_smooth_{name_i}_{spec_i}_{name_j}_{spec_j}_{iStart}_{iStop}.png"))
else:
plt.savefig(os.path.join(plot_dir, f"GP_MC_covmat_smooth_{name_i}_{spec_i}_{name_j}_{spec_j}.png"))
if i == j:
plt.savefig(os.path.join(plot_dir, f"GP_MC_covmat_smooth_{name_i}_{spec_i}_{name_j}_{spec_j}.png"))
else:
plt.savefig(os.path.join(plot_dir, 'off_diags', f"GP_MC_covmat_smooth_{name_i}_{spec_i}_{name_j}_{spec_j}.png"))
plt.close()

0 comments on commit 47261eb

Please sign in to comment.