import numpy as np import seaborn as sns import matplotlib.pyplot as plt def bin_dist(): test_list = [10, 100, 1000, 10000] for i in test_list: x = np.random.binomial(n=i, p=0.5, size=i) print('--',i,'--') sns.distplot(x) plt.show() bin_dist()
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter