diff --git a/swash/processing/post.py b/swash/processing/post.py index 2642226..0376bf8 100644 --- a/swash/processing/post.py +++ b/swash/processing/post.py @@ -82,8 +82,8 @@ ax_r.set(ylim=(0, 1), xlabel="f (Hz)", ylabel="R") 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, :].T) +ax_x.plot(-botl[0, :], color='k') +ax_x.plot((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)