From: devicerandom Date: Tue, 3 Mar 2009 14:30:14 +0000 (+0000) Subject: (pcluster.py) temporary things for quick and dirty testing X-Git-Tag: 0.9.0~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62c45269c78c9ad9ac233407ff073c8de1185148;p=hooke.git (pcluster.py) temporary things for quick and dirty testing --- 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]