From 330f1cdb6bd2ce49422f6ef2a08701fed08cc30a Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Fri, 24 Jul 2020 15:34:06 +0100 Subject: python: makeBoundary: Switch x and y axes for rating curves. * python/makeBoundary (plot_region): Re-name local variables. --- python/makeBoundary | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'python') diff --git a/python/makeBoundary b/python/makeBoundary index b960343..0a208a6 100755 --- a/python/makeBoundary +++ b/python/makeBoundary @@ -70,26 +70,26 @@ def conveyance(numH, n_co, xregion, zregion, zmin, zmax): return p_i, A_i, r_h, h_i, K_i, Q_i -def plot_region(xdata, labelx, - ydata1, labely1, - ydata2, labely2, - ydata3, labely3, titlep): - plt.xlabel(labelx) - plt.ylabel(labely1) +def plot_region(ydata, labely, + xdata1, labelx1, + xdata2, labelx2, + xdata3, labelx3, titlep): + plt.xlabel(labelx1) + plt.ylabel(labely) plt.title(titlep) - plt.plot(xdata, ydata1) + plt.plot(xdata1, ydata) plt.show() - plt.xlabel(labelx) - plt.ylabel(labely2) + plt.xlabel(labelx2) + plt.ylabel(labely) plt.title(titlep) - plt.plot(xdata, ydata2) + plt.plot(xdata2, ydata) plt.show() - plt.xlabel(labelx) - plt.ylabel(labely3) + plt.xlabel(labelx3) + plt.ylabel(labely) plt.title(titlep) - plt.plot(xdata, ydata3) + plt.plot(xdata3, ydata) plt.show() def save_bc(outputfile): -- cgit