From: devicerandom Date: Tue, 3 Mar 2009 14:23:25 +0000 (+0000) Subject: (hooke.py) scatter_red patch to have red scatterplot X-Git-Tag: 0.9.0~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7d32b9e29008b9de817df158adf4c0d19a867ffa;p=hooke.git (hooke.py) scatter_red patch to have red scatterplot --- diff --git a/hooke.py b/hooke.py index 5c7dc06..13f79d4 100755 --- a/hooke.py +++ b/hooke.py @@ -478,6 +478,8 @@ class MainWindow(wx.Frame): if len(vectors_to_plot)==2: #3d plots are to come... if len(plot.styles) > 0 and plot.styles[c] == 'scatter': self.axes[dest].scatter(vectors_to_plot[0],vectors_to_plot[1]) + elif len(plot.styles) > 0 and plot.styles[c] == 'scatter_red': + self.axes[dest].scatter(vectors_to_plot[0],vectors_to_plot[1],color='red') else: self.axes[dest].plot(vectors_to_plot[0],vectors_to_plot[1]) @@ -665,6 +667,8 @@ class MainWindow(wx.Frame): for plotset in plot.vectors: if len(plot.styles) > 0 and plot.styles[c]=='scatter': self.axes[dest].scatter(plotset[0], plotset[1]) + elif len(plot.styles) > 0 and plot.styles[c] == 'scatter_red': + self.axes[dest].scatter(plotset[0],plotset[1],color='red') else: self.axes[dest].plot(plotset[0], plotset[1]) c+=1 diff --git a/pcluster.py b/pcluster.py index 583edad..e38e4ae 100644 --- a/pcluster.py +++ b/pcluster.py @@ -325,6 +325,7 @@ class pclusterCommands: if (row[0]<9000 and row[1]<9000 and row[2]<9000 and row[3]<9000 and row[4]<9000 and row[5]<9000): if (row[0]>0 and row[1]>0 and row[2]>0 and row[3]>0 and row[4]>0 and row[5]>0): self.pca_paths[nPlotGood] = plot_path_temp + row=[row[1],row[2]] self.pca_myArray.append(row) nPlotGood = nPlotGood+1 @@ -349,9 +350,9 @@ class pclusterCommands: Y=myArrayTr[1] clustplot=lhc.PlotObject() clustplot.add_set(X,Y) - #clustplot.add_set(X[:14],Y[:14]) + clustplot.add_set(X[:15],Y[:15]) clustplot.normalize_vectors() - clustplot.styles=['scatter'] + clustplot.styles=['scatter', 'scatter_red'] #clustplot.styles=['scatter',None] clustplot.destination=1 self._send_plot([clustplot])