From a6ec88b87bbf44d134a83cab254175ad8c516366 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 8 Apr 2022 11:25:32 +0200 Subject: [PATCH] Reformat animate.py --- swash/processing/animate.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/swash/processing/animate.py b/swash/processing/animate.py index b6cd8ff..33796ce 100644 --- a/swash/processing/animate.py +++ b/swash/processing/animate.py @@ -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