Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0453420

Browse files
authored
EXA Fix overlapping titles in clustering overview (#19506)
1 parent dbd68b2 commit 0453420

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/cluster/plot_cluster_comparison.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
# ============
6464
# Set up cluster parameters
6565
# ============
66-
plt.figure(figsize=(9 * 2 + 3, 12.5))
67-
plt.subplots_adjust(left=.02, right=.98, bottom=.001, top=.96, wspace=.05,
66+
plt.figure(figsize=(9 * 2 + 3, 13))
67+
plt.subplots_adjust(left=.02, right=.98, bottom=.001, top=.95, wspace=.05,
6868
hspace=.01)
6969

7070
plot_num = 1
@@ -135,16 +135,16 @@
135135
n_components=params['n_clusters'], covariance_type='full')
136136

137137
clustering_algorithms = (
138-
('MiniBatchKMeans', two_means),
139-
('AffinityPropagation', affinity_propagation),
138+
('MiniBatch\nKMeans', two_means),
139+
('Affinity\nPropagation', affinity_propagation),
140140
('MeanShift', ms),
141-
('SpectralClustering', spectral),
141+
('Spectral\nClustering', spectral),
142142
('Ward', ward),
143-
('AgglomerativeClustering', average_linkage),
143+
('Agglomerative\nClustering', average_linkage),
144144
('DBSCAN', dbscan),
145145
('OPTICS', optics),
146146
('BIRCH', birch),
147-
('GaussianMixture', gmm)
147+
('Gaussian\nMixture', gmm)
148148
)
149149

150150
for name, algorithm in clustering_algorithms:

0 commit comments

Comments
 (0)