diff --git a/examples/ensemble/plot_forest_iris.py b/examples/ensemble/plot_forest_iris.py index 73db88d829b1f..81cd54a9bb4d3 100644 --- a/examples/ensemble/plot_forest_iris.py +++ b/examples/ensemble/plot_forest_iris.py @@ -107,7 +107,7 @@ plt.subplot(3, 4, plot_idx) if plot_idx <= len(models): # Add a title at the top of each column - plt.title(model_title) + plt.title(model_title, fontsize=9) # Now plot the decision boundary using a fine mesh as input to a # filled contour plot @@ -154,7 +154,7 @@ edgecolor='k', s=20) plot_idx += 1 # move on to the next plot in sequence -plt.suptitle("Classifiers on feature subsets of the Iris dataset") +plt.suptitle("Classifiers on feature subsets of the Iris dataset", fontsize=12) plt.axis("tight") - +plt.tight_layout(h_pad=0.2, w_pad=0.2, pad=2.5) plt.show()