Fill water in x plot
This commit is contained in:
parent
75f932da98
commit
7686aeffe5
1 changed files with 5 additions and 2 deletions
|
@ -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}'")
|
||||
|
|
Loading…
Reference in a new issue