Skip to content

Commit 6dcab8c

Browse files
committed
Changes from review
1 parent 765793e commit 6dcab8c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/deepdiagnostics/plots/coverage_fraction.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ def plot(
121121
reference_line_label="Reference Line",
122122
reference_line_style="k--",
123123
x_label="Confidence Interval of the Posterior Volume",
124-
y_label="Fraction of Lenses within Posterior Volume",
124+
y_label="Coverage fraction within posterior volume",
125125
residual_y_label="Coverage Fraction Residual",
126-
title="NPE"
126+
title=""
127127
) -> tuple["fig", "ax"]:
128128
"""
129129
Plot the coverage fraction and residuals if specified.
@@ -163,9 +163,11 @@ def plot(
163163
data_display, subplots[1], figure_alpha, line_width, reference_line_style, include_coverage_residual_std, include_ideal_range
164164
)
165165
subplots[1].set_ylabel(residual_y_label)
166+
subplots[1].set_xlabel(x_label)
166167

167168
else:
168169
fig, ax = plt.subplots(1, 1, figsize=self.figure_size)
170+
ax.set_xlabel(x_label)
169171

170172
# Iterate over the number of parameters in the model
171173
for i in range(self.n_parameters):
@@ -228,7 +230,6 @@ def add_clearance(ax, clearance=0.1, clearance_alpha=0.2):
228230
else:
229231
ax.legend()
230232

231-
ax.set_xlabel(x_label)
232233
ax.set_ylabel(y_label)
233234
ax.set_title(title)
234235

0 commit comments

Comments
 (0)