Mercurial > repos > bimib > marea
diff Marea/marea_cluster.py @ 25:9992eba50cfb draft
fixed pyplot backend
author | bimib |
---|---|
date | Mon, 07 Oct 2019 13:44:13 -0400 |
parents | a8825e66c3a0 |
children | e6831924df01 |
line wrap: on
line diff
--- a/Marea/marea_cluster.py Wed Oct 02 08:24:14 2019 -0400 +++ b/Marea/marea_cluster.py Mon Oct 07 13:44:13 2019 -0400 @@ -10,6 +10,8 @@ from sklearn.datasets import make_blobs from sklearn.cluster import KMeans, DBSCAN, AgglomerativeClustering from sklearn.metrics import silhouette_samples, silhouette_score, davies_bouldin_score, cluster +import matplotlib +matplotlib.use('agg') import matplotlib.pyplot as plt import scipy.cluster.hierarchy as shc import matplotlib.cm as cm