aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2020-07-24 15:34:06 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2020-07-24 15:34:06 +0100
commit330f1cdb6bd2ce49422f6ef2a08701fed08cc30a (patch)
treed8a09e82d05c91a8e9fa21c75945549e9175d63b
parentb1cb110508c197e163e4f8fe772e91d33b6e296a (diff)
downloadfullSWOF-utils-330f1cdb6bd2ce49422f6ef2a08701fed08cc30a.tar.gz
python: makeBoundary: Switch x and y axes for rating curves.
* python/makeBoundary (plot_region): Re-name local variables.
-rwxr-xr-xpython/makeBoundary26
1 files changed, 13 insertions, 13 deletions
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):