You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
284 B
Python
12 lines
284 B
Python
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() |