Skip to content

Commit

Permalink
FIx Flow Duration Curve Plot Bug (#365)
Browse files Browse the repository at this point in the history
* matplotlib >=3.8

* assign sortby to value
  • Loading branch information
ssolson authored Dec 3, 2024
1 parent 79f69ca commit 424338b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mhkit/river/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def plot_flow_duration_curve(D, F, label=None, ax=None):
"""
# Sort by F
temp = xr.Dataset(data_vars={"D": D, "F": F})
temp.sortby("F", ascending=False)
temp = temp.sortby("F", ascending=False)

ax = _xy_plot(
temp["D"],
Expand Down

0 comments on commit 424338b

Please sign in to comment.