Skip to content

Commit

Permalink
Fix autocorrelation plots
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Apr 26, 2022
1 parent 46c1224 commit 341ab4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plot.jl
Expand Up @@ -62,7 +62,8 @@ const supportedplots = push!(collect(keys(translationdict)), :mixeddensity, :cor

if st == :autocorplot
lags = 0:(maxlag === nothing ? round(Int, 10 * log10(length(range(c)))) : maxlag)
ac = autocor(c; sections = nothing, lags = lags)
# Chains are already appended in `c` if desired, hence we use `append_chains=false`
ac = autocor(c; sections = nothing, lags = lags, append_chains=false)
ac_mat = convert(Array, ac)
val = colordim == :parameter ? ac_mat[:, :, i]' : ac_mat[i, :, :]
_AutocorPlot(lags, val)
Expand Down

0 comments on commit 341ab4e

Please sign in to comment.