Skip to content

Commit

Permalink
some minor plotting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShantanuKodgirwar committed Oct 25, 2024
1 parent 14ee1a2 commit 24467e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scripts/curve_Nd.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def acf_geodist_plot(
methods,
algos,
savedir,
filename="curve_acf_distplot.pdf",
filename="curve_acf_distplot",
savefig=True,
):

Expand Down Expand Up @@ -343,7 +343,7 @@ def acf_geodist_plot(
savedir_acf_dist = f"{savedir}/dist_acf_plots"
os.makedirs(savedir_acf_dist, exist_ok=True)
fig.savefig(
f"{savedir_acf_dist}/{filename}",
f"{savedir_acf_dist}/{filename}.pdf",
bbox_inches="tight",
transparent=True,
dpi=150,
Expand Down
8 changes: 3 additions & 5 deletions scripts/ess_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ def ess_plot_varying_param(
if __name__ == "__main__":

plotting_varying_kappa = True
plotting_varying_ndim = True
plotting_varying_ndim = False

if plotting_varying_kappa:
# parameters for loading samples and calculating ESS
kappas = np.arange(100, 900, 100)
n_dim = 10
n_dim = 5
n_runs = 10
subdir = f"results/curve_{n_dim}d_vary_kappa_nruns_{n_runs}"
ess_filename = "ess_curve_10d_varying_kappa.pkl"
ess_filename = f"ess_curve_{n_dim}d_varying_kappa.pkl"
ess_filepath = os.path.join(subdir, ess_filename)
recompute_ess = False

Expand Down Expand Up @@ -321,5 +321,3 @@ def ess_plot_varying_param(
fig.savefig(
f"{subdir}/ess_curve_kappa_{int(kappa)}_varying_ndim.pdf",
)

# %%

0 comments on commit 24467e2

Please sign in to comment.