diff --git a/swash/processing/post.py b/swash/processing/post.py index 7fec275..7968ce1 100644 --- a/swash/processing/post.py +++ b/swash/processing/post.py @@ -83,12 +83,12 @@ ax_x.set(xlabel="x (m)", ylabel="z (m)") ax_x.autoscale(axis="x", tight=True) ax_x.grid() -out = pathlib.Path(config.get("post", "out")) +out = pathlib.Path(config.get("post", "out")).joinpath(f"t{t0}x{x0}") log.info(f"Saving plots in '{out}'") out.mkdir(exist_ok=True) -fig.savefig(out.joinpath(f"t{x0}.png")) -fig_r.savefig(out.joinpath(f"R{x0}.png")) -fig_x.savefig(out.joinpath(f"x{t0}.png")) +fig.savefig(out.joinpath(f"t.png")) +fig_r.savefig(out.joinpath(f"R.png")) +fig_x.savefig(out.joinpath(f"x.png")) log.info("Finished post-processing")