From 0db0e1944c608ad144d9a5bd60a53bf6a2de09ee Mon Sep 17 00:00:00 2001 From: devicerandom Date: Tue, 3 Mar 2009 14:30:14 +0000 Subject: [PATCH] (pcluster.py) temporary things for quick and dirty testing --- pcluster.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pcluster.py b/pcluster.py index e38e4ae..6ce3daf 100644 --- a/pcluster.py +++ b/pcluster.py @@ -349,8 +349,21 @@ class pclusterCommands: X=myArrayTr[0] Y=myArrayTr[1] clustplot=lhc.PlotObject() - clustplot.add_set(X,Y) - clustplot.add_set(X[:15],Y[:15]) + + Xsyn=[] + Ysyn=[] + Xgb1=[] + Ygb1=[] + for index in range(len(self.pca_paths)): + if 'syn' in self.pca_paths[index]: + Xsyn.append(X[index]) + Ysyn.append(Y[index]) + else: + Xgb1.append(X[index]) + Ygb1.append(Y[index]) + + clustplot.add_set(Xsyn,Ysyn) + clustplot.add_set(Xgb1,Ygb1) clustplot.normalize_vectors() clustplot.styles=['scatter', 'scatter_red'] #clustplot.styles=['scatter',None] -- 2.26.2