# Dieses Programm lasse ich in # ipython --pylab # laufen. import numpy as np import matplotlib.pyplot as plt # Daten aus Datei einlesen: tempData = np.loadtxt("GLB.Ts+dSST-v2.txt" , unpack=True) # Jahre getrennt speichern: years = tempData[0] # Temperaturen J-D getrennt speichern: preTemps = tempData[13] # Das waren hundertstel Grad Celsius. In Grad Celsius umrechnen: temps = preTemps/100 plt.plot(years,temps, color='b',linewidth=2) plt.figtext(0.15,0.75,"Global Land-Ocean Temperature Index der NASA",size='large') plt.figtext(0.3,0.70,"1881-2012",size='large') plt.xlabel("Jahre") plt.ylabel("Temperaturdifferenz in Grad Celsius") savefig("temp-plot.png", dpi=80)