update
This commit is contained in:
parent
8016d732d2
commit
fc8b2e601f
|
@ -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]
|
||||
|
|
Reference in New Issue