From 1d31951a7d2823d7d3c5e16e30b648c92814e0e6 Mon Sep 17 00:00:00 2001 From: Yael-II <154762804+Yael-II@users.noreply.github.com> Date: Sun, 19 Jan 2025 17:35:00 +0100 Subject: [PATCH] changed Figs directory --- Source/plot_area.py | 4 ++-- Source/plot_poincare_sections.py | 2 +- Source/plot_poincare_sections_zoom.py | 6 +++--- Source/test_evolution.py | 2 +- Source/test_initial_E.py | 2 +- Source/test_potentials.py | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/plot_area.py b/Source/plot_area.py index e942745..5886caf 100644 --- a/Source/plot_area.py +++ b/Source/plot_area.py @@ -61,7 +61,7 @@ def plot_area(filelist: list, mu_c = 1e-4) -> int: ax.set_ylabel("Phase-space squared distance $\\mu$") ax.set_yscale("log") ax.legend() - fig.savefig("mu.pdf") + fig.savefig("Figs/mu.pdf") fig, ax = plt.subplots(1) N_reg = np.count_nonzero(mu < mu_c, axis=1) @@ -70,7 +70,7 @@ def plot_area(filelist: list, mu_c = 1e-4) -> int: ax.scatter(E, Area, s=5, color="C0") ax.set_xlabel("Energy $E$") ax.set_ylabel("Area $N_\\mathrm{{reg}}/N_\\mathrm{{part}}$") - fig.savefig("area.pdf") + fig.savefig("Figs/area.pdf") return 0 filelist = [f for f in os.listdir(OUT_DIR) if FILENAME_PREFIX in f] diff --git a/Source/plot_poincare_sections.py b/Source/plot_poincare_sections.py index f74b9cc..d506dc0 100644 --- a/Source/plot_poincare_sections.py +++ b/Source/plot_poincare_sections.py @@ -64,7 +64,7 @@ def plot_poincare_sections(filelist: list, title:str = "") -> int: if "linear" in title: kind = "linear" elif "parallel" in title: kind = "parallel" else: kind = "error" - fig.savefig("pcs_{}.pdf".format(kind)) + fig.savefig("Figs/pcs_{}.pdf".format(kind)) return 0 print("\033[32m" + "[P]arallel or [L]inear algorithm result, or [B]oth?" diff --git a/Source/plot_poincare_sections_zoom.py b/Source/plot_poincare_sections_zoom.py index a338fd4..058d87e 100644 --- a/Source/plot_poincare_sections_zoom.py +++ b/Source/plot_poincare_sections_zoom.py @@ -70,9 +70,9 @@ def plot_poincare_sections(filelist: list, title:str = "") -> int: if "linear" in title: kind = "linear" elif "parallel" in title: kind = "parallel" else: kind = "error" - fig1.savefig("pcs_zoom_1_{}.pdf".format(kind)) - fig2.savefig("pcs_zoom_2_{}.pdf".format(kind)) - fig3.savefig("pcs_zoom_3_{}.pdf".format(kind)) + fig1.savefig("Figs/pcs_zoom_1_{}.pdf".format(kind)) + fig2.savefig("Figs/pcs_zoom_2_{}.pdf".format(kind)) + fig3.savefig("Figs/pcs_zoom_3_{}.pdf".format(kind)) return 0 print("\033[32m" diff --git a/Source/test_evolution.py b/Source/test_evolution.py index 08e9ab5..9597a83 100644 --- a/Source/test_evolution.py +++ b/Source/test_evolution.py @@ -64,7 +64,7 @@ if __name__ == "__main__": ax.set_ylabel("$y$") ax.set_aspect("equal") - plt.savefig("evolution.png") + plt.savefig("Figs/evolution.png") plt.show(block=True) diff --git a/Source/test_initial_E.py b/Source/test_initial_E.py index 9098e51..0e29163 100644 --- a/Source/test_initial_E.py +++ b/Source/test_initial_E.py @@ -48,7 +48,7 @@ if __name__ == "__main__": ax.set_ylabel("$y$") ax.set_aspect("equal") - fig.savefig("initial_E.png") + fig.savefig("Figs/initial_E.png") plt.show(block=True) diff --git a/Source/test_potentials.py b/Source/test_potentials.py index b205dbc..4f6f08e 100644 --- a/Source/test_potentials.py +++ b/Source/test_potentials.py @@ -33,7 +33,7 @@ def kepler(W): ax.set_xlabel("$x$") ax.set_ylabel("$y$") - fig.savefig("pot_kepler.png") + fig.savefig("Figs/pot_kepler.png") return 0 def hh(W): @@ -49,7 +49,7 @@ def hh(W): ax.set_xlabel("$x$") ax.set_ylabel("$y$") - fig.savefig("pot_hh.png") + fig.savefig("Figs/pot_hh.png") return 0 if __name__ == "__main__":