Skip to content

Commit 335a67e

Browse files
committed
added keywords for burn and thin to autocorrplot
1 parent faaf734 commit 335a67e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc/plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def kde2plot(x, y, grid=200):
129129
return f
130130

131131

132-
def autocorrplot(trace, vars=None, fontmap=None, max_lag=100):
132+
def autocorrplot(trace, vars=None, fontmap=None, max_lag=100,burn=0, thin=1):
133133
"""Bar plot of the autocorrelation function for a trace"""
134134
import matplotlib.pyplot as plt
135135
if fontmap is None:
@@ -148,7 +148,7 @@ def autocorrplot(trace, vars=None, fontmap=None, max_lag=100):
148148

149149
for i, v in enumerate(vars):
150150
for j in range(chains):
151-
d = np.squeeze(trace.get_values(v, chains=[j]))
151+
d = np.squeeze(trace.get_values(v, chains=[j],burn=burn,thin=thin))
152152

153153
ax[i, j].acorr(d, detrend=plt.mlab.detrend_mean, maxlags=max_lag)
154154

0 commit comments

Comments
 (0)