8000 DOC Fix y-axis plot labels in permutation test score example (#26240) · scikit-learn/scikit-learn@5826358 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5826358

Browse files
authored
DOC Fix y-axis plot labels in permutation test score example (#26240)
1 parent 363c633 commit 5826358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/model_selection/plot_permutation_tests_for_classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
score_label = f"Score on original\ndata: {score_iris:.2f}\n(p-value: {pvalue_iris:.3f})"
9696
ax.text(0.7, 10, score_label, fontsize=12)
9797
ax.set_xlabel("Accuracy score")
98-
_ = ax.set_ylabel("Probability")
98+
_ = ax.set_ylabel("Probability density")
9999

100100
# %%
101101
# Random data
@@ -116,7 +116,7 @@
116116
score_label = f"Score on original\ndata: {score_rand:.2f}\n(p-value: {pvalue_rand:.3f})"
117117
ax.text(0.14, 7.5, score_label, fontsize=12)
118118
ax.set_xlabel("Accuracy score")
119-
ax.set_ylabel("Probability")
119+
ax.set_ylabel("Probability density")
120120
plt.show()
121121

122122
# %%

0 commit comments

Comments
 (0)
0