changeset 25:9992eba50cfb draft

fixed pyplot backend
author bimib
date Mon, 07 Oct 2019 13:44:13 -0400
parents 69ed2562e81e
children 100c116d0d25
files Marea/marea_cluster.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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