import os import biggles import math, Numeric index = open("plot/index.html","w+") def make_graph(file): x = biggles.read_column ( 0, "split/"+file, float, '#' ) y = biggles.read_column ( 1, "split/"+file, float, '#' ) print file g = biggles.FramedPlot() # pts = biggles.Points( x, y, type="filled circle", color = "red") pts = biggles.Points( x, y, color = "red") g.add( pts ) #g.show() print "Wrote: %s" % "plot/"+file+".png" g.write_img(1000, 400, "plot/"+file+".png") index.write("
%s

" % (file+".png", file)) for root, dirs, files in os.walk('split'): print files for file in files: make_graph(file)