Added extensions for inline doc plotting

This commit is contained in:
Alan Saul 2013-01-31 15:19:53 +00:00
parent 8498332f76
commit 0763efcad4
2 changed files with 20 additions and 2 deletions

View file

@ -146,3 +146,13 @@ The flag ``ARD=True`` in the definition of the Matern kernel specifies that we w
:height: 350px
Contour plot of the best predictor (posterior mean).
.. plot::
import matplotlib.pyplot as plt
import numpy as np
x = np.random.randn(1000)
plt.hist( x, 20)
plt.grid()
plt.title(r'Normal: $\mu=%.2f, \sigma=%.2f$'%(x.mean(), x.std()))
plt.show()