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
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
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
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