Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get a nice bar chart?

I have

image description

reset()
import scipy.stats
n = 2000
p = 0.2
binom_dist = scipy.stats.binom(n,p)
bar_chart([binom_dist.pmf(x) for x in range(n)], axes_labels=['$k$','$B(k,{},{})$'.format(n,float(p))])

How could I create something nicer, like

image description