* system/plots.py: Added NetworkPlot, which may or may not work correctly.
* system/dataset.py: Removed a few lines of obsolete code.
This commit is contained in:
@@ -4,6 +4,7 @@ from system import dataset, logger, plots, workflow
|
||||
#import gostat
|
||||
from scipy import array,randn,log
|
||||
import cPickle
|
||||
import networkx
|
||||
|
||||
class TestWorkflow (workflow.Workflow):
|
||||
|
||||
@@ -103,7 +104,15 @@ class TestDataFunction(workflow.Function):
|
||||
x = randn(20,30)
|
||||
X = dataset.Dataset(x)
|
||||
p = plots.ScatterPlot(X, X, 'rows', 'rows', '0_1', '0_2')
|
||||
return [X, plots.SinePlot(), p]
|
||||
graph = networkx.XGraph()
|
||||
for x in 'ABCDEF':
|
||||
for y in 'ADE':
|
||||
graph.add_edge(x, y, 3)
|
||||
print networkx.adj_matrix(graph)
|
||||
ds = dataset.GraphDataset(array(networkx.adj_matrix(graph)))
|
||||
ds_plot = plots.NetworkPlot(ds)
|
||||
|
||||
return [X, ds, plots.SinePlot(), p, ds_plot]
|
||||
|
||||
class DatasetLog(workflow.Function):
|
||||
def __init__(self):
|
||||
|
Reference in New Issue
Block a user