#!/usr/bin/python #$Id$ import sys, os, string, time, re, string, math dirList = [] def createPlotFiles(): f = open('fibonacci.plt', 'w') f.write('set xlabel "Samples\n') f.write('set ylabel "Size"\n') f.write('set title "CPU use for Fibonacci Calculation"\n') f.write('set grid\n') f.write('set key right\n') f.write('set data styl lines\n') f.write('plot "fibonacci.dat"\n') f.write('pause -1 "Hit any key to continue"\n') f.close() os.system('gnuplot fibonacci.plt') if __name__ == "__main__": createPlotFiles()