Reformat animate.py
This commit is contained in:
parent
57024e768e
commit
a6ec88b87b
1 changed files with 8 additions and 1 deletions
|
@ -41,7 +41,14 @@ wl = np.maximum(watl, -botl)
|
||||||
fig, ax = plt.subplots()
|
fig, ax = plt.subplots()
|
||||||
ax.plot(x, -botl, c="k")
|
ax.plot(x, -botl, c="k")
|
||||||
ax.set(xlim=(x.min(), x.max()), ylim=(-30, 10), xlabel="x (m)", ylabel="z (m)")
|
ax.set(xlim=(x.min(), x.max()), ylim=(-30, 10), xlabel="x (m)", ylabel="z (m)")
|
||||||
tit = ax.text(0.5, 0, f't={t[0]}', horizontalalignment='center', verticalalignment='bottom', transform=ax.transAxes)
|
tit = ax.text(
|
||||||
|
0.5,
|
||||||
|
0,
|
||||||
|
f"t={t[0]}",
|
||||||
|
horizontalalignment="center",
|
||||||
|
verticalalignment="bottom",
|
||||||
|
transform=ax.transAxes,
|
||||||
|
)
|
||||||
ax.grid()
|
ax.grid()
|
||||||
# ax.fill_between(
|
# ax.fill_between(
|
||||||
# x, -botl, -data["botl"] + bathy.hstru, color="k", alpha=0.2
|
# x, -botl, -data["botl"] + bathy.hstru, color="k", alpha=0.2
|
||||||
|
|
Loading…
Reference in a new issue