1
Fork 0

Reformat animate.py

This commit is contained in:
Edgar P. Burkhart 2022-04-08 11:25:32 +02:00
parent 57024e768e
commit a6ec88b87b
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 8 additions and 1 deletions

View File

@ -41,7 +41,14 @@ wl = np.maximum(watl, -botl)
fig, ax = plt.subplots()
ax.plot(x, -botl, c="k")
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.fill_between(
# x, -botl, -data["botl"] + bathy.hstru, color="k", alpha=0.2