PV8*_*PV8 5 python matplotlib jupyter-notebook
现在我有一个 for 循环与一个图的组合:
plt.figure(figsize=(12, 12))
plt.subplot(221)
plt.scatter(X_pca[:, 0], X_pca[:, 1], c=y_pred)
plt.title('Clustering n: {}'.format(clusternumber))
plt.show()
Run Code Online (Sandbox Code Playgroud)
如果我运行循环:
for i in [2,3,4,5,10,15,20]:
clustering(X, i)
Run Code Online (Sandbox Code Playgroud)
如何避免图表旁边的滚动条?我更喜欢看到没有滚动条的可视化效果,这样我就可以同时看到至少 2 或 3 个。
归档时间: |
|
查看次数: |
13716 次 |
最近记录: |