Skip to content

Commit

Permalink
pass bw argument by name (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia committed May 20, 2018
1 parent 9ade5f8 commit 4930832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arviz/plots/posteriorplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def display_point_estimate():
point_value = trace_values.mean()
elif point_estimate == 'mode':
if isinstance(trace_values.iloc[0], float):
density, lower, upper = fast_kde(trace_values, bw)
density, lower, upper = fast_kde(trace_values, bw=bw)
x = np.linspace(lower, upper, len(density))
point_value = x[np.argmax(density)]
else:
Expand Down
2 changes: 1 addition & 1 deletion arviz/plots/traceplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _kdeplot_op(ax, data, bw, linewidth, prior=None, prior_shade=1, prior_style=
errored = []
for i, col in enumerate(data.T):
try:
density, lower, upper = fast_kde(col, bw)
density, lower, upper = fast_kde(col, bw=bw)
x = np.linspace(lower, upper, len(density))
densities.append(ax.plot(x, density, lw=linewidth))
if prior is not None:
Expand Down

0 comments on commit 4930832

Please sign in to comment.