aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
diff options
context:
space:
mode:
authorjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-11-05 17:04:37 -0500
committerjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-11-05 17:04:37 -0500
commitb8b21286a14487bbb2d1ff294ee44bc817e1dfb0 (patch)
tree416ad95474282e63e04ae244e40190b7522e9f0a /simulation
parentccf6beac410caca5a9d0e7328877b4e5b640672c (diff)
downloadcascades-b8b21286a14487bbb2d1ff294ee44bc817e1dfb0.tar.gz
making hist plot prettier
Diffstat (limited to 'simulation')
-rw-r--r--simulation/bayes.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/simulation/bayes.py b/simulation/bayes.py
index 5dcd48c..5114f70 100644
--- a/simulation/bayes.py
+++ b/simulation/bayes.py
@@ -87,7 +87,9 @@ if __name__=="__main__":
for i in xrange(len(g)):
for j in xrange(len(g)):
ax[i,j].locator_params(nbins=3, axis='x')
- ax[i,j].hist(mcmc.trace('theta_{}{}'.format(i,j))[:])
+ ax[i,j].hist(mcmc.trace('theta_{}{}'.format(i,j))[:], normed=True)
+ ax[i, j].set_xlim([0,1])
+ ax[i, j].plot([g[i, j]]*2, [0, ax[i,j].get_ylim()[-1]], color='red')
plt.tight_layout(pad=0.4, w_pad=0.5, h_pad=.1)
plt.show()