dfm/emcee — pull request #34 by adrn (2012-08-24 20:45:04+00:00)
Title: Fixes typo on quickstart page

This might be the smallest pull request ever submitted, but on the quickstart page in the emcee docs you have:

import matplotlib.pyplot as pl

for i in range(ndim):
pl.figure()
pl.hist(sampler.flatchain[:,0], 100, color="k", histtype="step")
pl.title("Dimension {0:d}".format(i))

pl.show()

Where the 0 in the flatchain slicing should be an i:

import matplotlib.pyplot as pl

for i in range(ndim):
pl.figure()
pl.hist(sampler.flatchain[:,i], 100, color="k", histtype="step")
pl.title("Dimension {0:d}".format(i))

pl.show()