The problem is that you don't plot the right thing. If I understand well the problem, it is more :
import matplotlib.pyplot as plt from scipy.stats import binom x = [i for i in range(11)] prob = binom.pmf(x, 10, 0.5) plt.bar(x, prob) plt.show()