Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0453420

Browse filesBrowse files
authored
EXA Fix overlapping titles in clustering overview (#19506)
1 parent dbd68b2 commit 0453420
Copy full SHA for 0453420

File tree

1 file changed

+7
-7
lines changed
Filter options

1 file changed

+7
-7
lines changed

‎examples/cluster/plot_cluster_comparison.py

Copy file name to clipboardExpand all lines: examples/cluster/plot_cluster_comparison.py
+7-7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.