.. _style_sheets-plot_bmh: style_sheets example code: plot_bmh.py ====================================== .. plot:: /home/tcaswell/other_source/matplotlib/doc/mpl_examples/style_sheets/plot_bmh.py :: """ This example demonstrates the "bmh" style, which is the design used in the Bayesian Methods for Hackers online book. """ from numpy.random import beta import matplotlib.pyplot as plt plt.style.use('bmh') def plot_beta_hist(a, b): plt.hist(beta(a, b, size=10000), histtype="stepfilled", bins=25, alpha=0.8, normed=True) return plot_beta_hist(10, 10) plot_beta_hist(4, 12) plot_beta_hist(50, 12) plot_beta_hist(6, 55) plt.show() Keywords: python, matplotlib, pylab, example, codex (see :ref:`how-to-search-examples`)