from pylab import * year = [] temp = [] f = open('/home/ivo/demo/data/warming.csv') for line in f: data = line.split(',') year.append(int(data[0])) temp.append(float(data[1])) plot(year, temp, 'b+') xlabel('Year') ylabel('Deviation (degrees celcius)') title('Temperature Deviation from Average 1850-2007') savefig('/home/ivo/demo/climate.png') print ""