1
Fork 0

Fill water in x plot

This commit is contained in:
Edgar P. Burkhart 2022-03-04 11:32:46 +01:00
parent 75f932da98
commit 7686aeffe5
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -75,11 +75,14 @@ ax_r.grid()
fig_x, ax_x = plt.subplots()
ax_x.plot(data["x"], -data["botl"], color="k")
ax_x.plot(data["x"], np.maximum(data["watl"][arg_t0, :], -data["botl"]))
ax_x.fill_between(
data["x"],
-data["botl"],
np.maximum(data["watl"][arg_t0, :], -data["botl"]),
)
ax_x.axvline(x0, c="k", alpha=0.2)
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")).joinpath(f"t{t0}x{x0}")
log.info(f"Saving plots in '{out}'")