1 4 2 9 3 7 4 10 5 8
from graphite import * graph = Graph() file = open('simplexy.dat') data = loadTable('simplexy.dat','\t') graph.datasets.append(Dataset(data))Next, we create a PointPlot format with a red line with width 2 for the line style. The second command appends this format to the list of plot formats which the graph mantains.
lineplot = PointPlot( lineStyle = LineStyle(color=red, width=2) ) graph.formats.append( lineplot )Finally we output the graph to a PDF file using the utitlity function genOutput.
genOutput(graph,'PDF',size=(400,250))