Skip to content

Commit 780b393

Browse files
authored
FIX: fix wrongly used plt.show() in examples (scikit-learn#31524)
1 parent 1588ec9 commit 780b393

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/bicluster/plot_spectral_biclustering.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
plt.matshow(data, cmap=plt.cm.Blues)
4545
plt.title("Original dataset")
46-
_ = plt.show()
46+
plt.show()
4747

4848
# %%
4949
# We shuffle the data and the goal is to reconstruct it afterwards using
@@ -62,7 +62,7 @@
6262

6363
plt.matshow(data, cmap=plt.cm.Blues)
6464
plt.title("Shuffled dataset")
65-
_ = plt.show()
65+
plt.show()
6666

6767
# %%
6868
# Fitting `SpectralBiclustering`
@@ -102,7 +102,7 @@
102102

103103
plt.matshow(reordered_data, cmap=plt.cm.Blues)
104104
plt.title("After biclustering; rearranged to show biclusters")
105-
_ = plt.show()
105+
plt.show()
106106

107107
# %%
108108
# As a last step, we want to demonstrate the relationships between the row

examples/svm/plot_svm_kernels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
scatter = ax.scatter(X[:, 0], X[:, 1], s=150, c=y, label=y, edgecolors="k")
8080
ax.legend(*scatter.legend_elements(), loc="upper right", title="Classes")
8181
ax.set_title("Samples in two-dimensional feature space")
82-
_ = plt.show()
82+
plt.show()
8383

8484
# %%
8585
# We can see that the samples are not clearly separable by a straight line.

0 commit comments

Comments
 (0)