# -*- coding: utf-8 -*- # 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-2015-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",size='large') plt.figtext(0.2,0.70," Index der NASA 1881-2014",size='large') plt.xlabel("Jahre") plt.ylabel("Temperaturdifferenz in Grad Celsius") savefig("temp-plot.png", dpi=80)