Skip to content

Commit 761df55

Browse files
committed
exceedance_probability
1 parent 8670235 commit 761df55

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mhkit/wave/graphics.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -644,20 +644,24 @@ def monthly_cumulative_distribution(J):
644644
for month in months:
645645
F = exceedance_probability(J[J.index.month == month])
646646
cumSum[month] = 1 - F / 100
647-
cumSum[month].sort_values("F", inplace=True)
647+
cumSum[month].sort_values("exceedance_probability", inplace=True)
648648
plt.figure(figsize=(12, 8))
649649
for month in months:
650650
plt.semilogx(
651651
J.loc[cumSum[month].index],
652-
cumSum[month].F,
652+
cumSum[month]["exceedance_probability"],
653653
"--",
654654
label=calendar.month_abbr[month],
655655
)
656656

657657
F = exceedance_probability(J)
658-
F.sort_values("F", inplace=True)
658+
F.sort_values("exceedance_probability", inplace=True)
659659
ax = plt.semilogx(
660-
J.loc[F.index], 1 - F["F"] / 100, "k-", fillstyle="none", label="All"
660+
J.loc[F.index],
661+
1 - F["exceedance_probability"] / 100,
662+
"k-",
663+
fillstyle="none",
664+
label="All",
661665
)
662666

663667
plt.grid()

0 commit comments

Comments
 (0)