import matplotlib.pyplot as plt cs=[380, 340, 350, 320, 330, 340, 360, 350] plt.hist(cs,bins=range(320,400,10),rwidth=0.95)