Run
import matplotlib.pyplot as plt x = [2011, 2012, 2013, 2014, 2015, 2016] height = [5.6, 7, 2.5, 4, 3.8, 6.1] fig, ax = plt.subplots() ax.bar(x, height, color='#4958B5') ax.set_xlabel('Time') ax.set_ylabel('Price') ax.set_title('XY Stock') plt.show()
Output