Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0
This commit is contained in:
Arnar Flatberg 2006-08-14 11:52:26 +00:00
parent 8016d732d2
commit fc8b2e601f
1 changed files with 7 additions and 6 deletions

View File

@ -101,9 +101,10 @@ class TestDataFunction(workflow.Function):
def run(self):
logger.log('notice', 'Injecting foo test data')
x = randn(20,30)
x = randn(500,30)
X = dataset.Dataset(x)
p = plots.ScatterPlot(X, X, 'rows', 'rows', '0_1', '0_2')
p = plots.ScatterMarkerPlot(X, X, 'rows', 'rows', '0_1', '0_2',name='p')
p2 = plots.ScatterMarkerPlot(X, X, 'rows', 'rows', '0_1', '0_2',name='p2')
graph = networkx.XGraph()
for x in 'ABCDEF':
for y in 'ADE':
@ -112,8 +113,8 @@ class TestDataFunction(workflow.Function):
ds_plot = plots.NetworkPlot(ds)
print ds.get_dim_name()
ds_scatter = plots.ScatterPlot(ds, ds, 'rows_0', 'rows_0', '0_1', '0_2')
return [X, ds, plots.SinePlot(), p, ds_plot, ds_scatter]
ds_scatter = plots.ScatterMarkerPlot(ds, ds, 'rows_0', 'rows_0', '0_1', '0_2')
return [X, ds, plots.SinePlot(), p, ds_plot, ds_scatter,p2]
class DatasetLog(workflow.Function):
def __init__(self):
@ -259,7 +260,7 @@ class PCAFunction(workflow.Function):
# cleanup
rpy.r.rm(["t", "m"])
loading_plot = plots.ScatterPlot(P, P, 'ids','component','1','2', "Loadings")
score_plot = plots.ScatterPlot(T, T,'filename','component','1','2', "Scores")
loading_plot = plots.ScatterMarkerPlot(P, P, 'ids','component','1','2', "Loadings")
score_plot = plots.ScatterMarkerPlot(T, T,'filename','component','1','2', "Scores")
return [T, P, loading_plot, score_plot]