10000 improve example plot_forest_iris.py (#9989) · maskani-moh/scikit-learn@a21d680 · GitHub
[go: up one dir, main page]

Skip to content

Commit a21d680

Browse files
qinhanmin2014maskani-moh
authored andcommitted
improve example plot_forest_iris.py (scikit-learn#9989)
1 parent 3349e65 commit a21d680

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/ensemble/plot_forest_iris.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
plt.subplot(3, 4, plot_idx)
108108
if plot_idx <= len(models):
109109
# Add a title at the top of each column
110-
plt.title(model_title)
110+
plt.title(model_title, fontsize=9)
111111

112112
# Now plot the decision boundary using a fine mesh as input to a
113113
# filled contour plot
@@ -154,7 +154,7 @@
154154
edgecolor='k', s=20)
155155
plot_idx += 1 # move on to the next plot in sequence
156156

157-
plt.suptitle("Classifiers on feature subsets of the Iris dataset")
157+
plt.suptitle("Classifiers on feature subsets of the Iris dataset", fontsize=12)
158158
plt.axis("tight")
159-
159+
plt.tight_layout(h_pad=0.2, w_pad=0.2, pad=2.5)
160160
plt.show()

0 commit comments

Comments
 (0)
0