(pcluster.py) temporary things for quick and dirty testing
authordevicerandom <devnull@localhost>
Tue, 3 Mar 2009 14:30:14 +0000 (14:30 +0000)
committerdevicerandom <devnull@localhost>
Tue, 3 Mar 2009 14:30:14 +0000 (14:30 +0000)
pcluster.py

index e38e4aedd9f3c5397cf76a9b764a70aff7417078..6ce3dafd0a42f252d35a9231b1daec808733aee8 100644 (file)
@@ -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]