Пример #1
0
def scatterplot(refx, refy) :
    """
    scatterplot(refx,refy):
    creates a scatter plot with refx along the x axis and refy along the y axis
    """
    refx = wrap_data(refx)
    refy = wrap_data(refy)
    refxy = ProxyFactory.createPairedTimeSeriesProxy(refx,refy)
    gb = DefaultGraphBuilder(); gb.addData(refxy);
    graphs = gb.createGraphs();
    DataGraphFrame(graphs[0],'Scatter Plot')
Пример #2
0
def scatterplot(refx, refy):
    """
    scatterplot(refx,refy):
    creates a scatter plot with refx along the x axis and refy along the y axis
    """
    refx = wrap_data(refx)
    refy = wrap_data(refy)
    refxy = ProxyFactory.createPairedTimeSeriesProxy(refx, refy)
    gb = DefaultGraphBuilder()
    gb.addData(refxy)
    graphs = gb.createGraphs()
    DataGraphFrame(graphs[0], 'Scatter Plot')
Пример #3
0
def plot(*reflist):
    """
    plot(ref1,ref2,...)
    plots a given data reference or data set or a group of such items
    separated by commas
    """
    if (reflist == None):
        print 'Empty reference list'
        return
    reflist = map(wrap_data, reflist)
    gb = DefaultGraphBuilder()
    for ref in reflist:
        if hasattr(ref, '__len__'):
            for iref in ref:
                gb.addData(iref)
        else:
            gb.addData(ref)
    graphs = gb.createGraphs()
    for graph in graphs:
        DataGraphFrame(graph, "Graph")
Пример #4
0
def plot(*reflist) :
    """
    plot(ref1,ref2,...)
    plots a given data reference or data set or a group of such items
    separated by commas
    """
    if ( reflist == None ) : print 'Empty reference list'; return;
    reflist=map(wrap_data,reflist)
    gb = DefaultGraphBuilder()
    for ref in reflist:
	if hasattr(ref,'__len__'):
	    for iref in ref :
		gb.addData(iref)
	else:
	    gb.addData(ref)
    graphs=gb.createGraphs()
    for graph in graphs: DataGraphFrame(graph,"Graph")