I am trying to draw histogram but nothing appears in the Figure Window. My code is below:
import numpy as np
import matplotlib.pyplot as plt
values = [1000000, 1525097, 2050194, 1095638, 1620736, 2145833, 1191277, 1716375, 1286916, 1382555]
plt.hist(values, 10, histtype = 'bar', facecolor = 'blue')
plt.ylabel("Values")
plt.xlabel("Bin Number")
plt.title("Histogram")
plt.axis([0,11,0,220000])
plt.show()
I am trying to achieve this plot

Any help would be much appreciated...



plt.axis([0,11,0,220000])this makes no sense. Can you say a word or two about why you included this and what it is supposed to do?