from pylab import plot, show from decimal import Decimal nyc_temp = [50.9, 60.3, 54.4, 52.4, 51.5, 52.8, 56.8, 55.0, 55.3, 54.0, 56.7, 56.4, 57.3] dec_nyc_temp = list(map(lambda x: Decimal(str(x)), nyc_temp)) years = range(2000, 2013) plot(years, dec_nyc_temp, marker='o') show()