Skip to content

Commit 424338b

Browse files
authored
FIx Flow Duration Curve Plot Bug (#365)
* matplotlib >=3.8 * assign sortby to value
1 parent 79f69ca commit 424338b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mhkit/river/graphics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def plot_flow_duration_curve(D, F, label=None, ax=None):
7676
"""
7777
# Sort by F
7878
temp = xr.Dataset(data_vars={"D": D, "F": F})
79-
temp.sortby("F", ascending=False)
79+
temp = temp.sortby("F", ascending=False)
8080

8181
ax = _xy_plot(
8282
temp["D"],

0 commit comments

Comments
 (0)