From 301c2a5e4714b54f30a538acd308f9b4c6f9c989 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Thu, 3 Mar 2022 15:23:53 +0100 Subject: [PATCH] Fixed x plot --- swash/processing/post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swash/processing/post.py b/swash/processing/post.py index 616d436..50cd5e8 100644 --- a/swash/processing/post.py +++ b/swash/processing/post.py @@ -83,7 +83,7 @@ ax_r.grid() fig_x, ax_x = plt.subplots() ax_x.plot(bathy.index, botl[0, :], color='k') -ax_x.plot(bathy.index, (dep-botl)[t == t0, :]) +ax_x.plot(bathy.index, (dep-botl)[t == t0, :].T) ax_x.axvline(x0) ax_x.set(xlabel="x (m)", ylabel="z (m)") ax_x.autoscale(axis="x", tight=True)