From 5140714c71cdee822b97d99b62fbc36b1ecd7ec1 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 4 Mar 2022 11:13:07 +0100 Subject: [PATCH] Removed 0-division --- 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 2dbbf82..34e6318 100644 --- a/swash/processing/post.py +++ b/swash/processing/post.py @@ -70,7 +70,7 @@ fig.tight_layout() fig_r, ax_r = plt.subplots() -ax_r.plot(1/phi_eta[0], R) +ax_r.plot(1 / phi_eta[0, 1:], R[1:]) ax_r.autoscale(axis="x", tight=True) ax_r.set(ylim=(0, 1), xlabel="t (s)", ylabel="R") ax_r.grid()