예제 #1
0
def show_plot(plot):
    graph = Graph()
    graph.add(plot)
    graph.setTitle("")
    dg = DataGraphFrame(graph, '', 0)
    dg.setLocation(100, 100)
    dg.setVisible(1)
    dg.setSize(600, 400)
    return dg
예제 #2
0
def show_plot(plot):
    graph = Graph()
    graph.add(plot)
    graph.setTitle("")
    dg = DataGraphFrame(graph,'',0)
    dg.setLocation(100,100)
    dg.setVisible(1)
    dg.setSize(600,400)
    return dg
예제 #3
0
def simple_plot(x,y,
                xlabel="x axis", ylabel="y axis", title = "title",
                legend = "legend",
                color = "red", symbol = None, gridy = 1, gridx = 0):
    """
    uses vista's graphing capabilities to draw a simple line
    plot between x and y 
    """
    pl = xyplot(x,y,xlabel,ylabel,title,legend,color,symbol,gridy,gridx)
    graph = Graph()
    graph.add(pl)
    graph.setTitle("")
    dg = DataGraphFrame(graph,'',0)
    dg.setLocation(100,100)
    dg.setVisible(1)
    dg.setSize(600,400)
    return pl
예제 #4
0
def simple_plot(x,
                y,
                xlabel="x axis",
                ylabel="y axis",
                title="title",
                legend="legend",
                color="red",
                symbol=None,
                gridy=1,
                gridx=0):
    """
    uses vista's graphing capabilities to draw a simple line
    plot between x and y 
    """
    pl = xyplot(x, y, xlabel, ylabel, title, legend, color, symbol, gridy,
                gridx)
    graph = Graph()
    graph.add(pl)
    graph.setTitle("")
    dg = DataGraphFrame(graph, '', 0)
    dg.setLocation(100, 100)
    dg.setVisible(1)
    dg.setSize(600, 400)
    return pl