In [4]:
import matplotlib.pyplot as plt
from collections import Counter
In [ ]:
def line_graph(plt):
years = [2000, 2002, 2005, 2007, 2010, 2012, 2014, 2015]
websites = [17, 38, 64, 121, 206, 697, 968, 863]
In [ ]:
plt.plot(years, websites, color='blue', marker='o',
linestyle='solid', linewidth= 2,)
In [ ]:
plt.xlim(2000, 2015)
plt.ylim(10, 1000)
In [ ]:
plt.title("Total number of websites online")
In [ ]:
plt.ylabel("Websites (millions)")
In [ ]:
plt.show()
In [3]:
if __name__ == "__main__":
line_graph(plt)