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
265 B
Python

6 years ago
from matplotlib import pyplot as plt
years = range(1950, 2020, 10)
gdp = [300.2, 543.3, 1075.9, 2862.5, 5979.6, 10289.7, 14958.3]
plt.plot(years, gdp, marker="o", color="green", linestyle="solid")
plt.title("Nominal GDP")
plt.ylabel("Billions of $")
plt.show()