Skip to content

Commit

Permalink
Corrected error in defining ymax
Browse files Browse the repository at this point in the history
taking len(values) instead of values[-1] for ymax argument in axvspan()
  • Loading branch information
GWeindel authored and ahartikainen committed Jan 14, 2019
1 parent 5e3e2f2 commit 7b81d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arviz/plots/forestplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def forestplot(
color=color,
)
if rope is not None and len(rope) == 2:
ax.axvspan(rope[0], rope[1], 0, values[-1], color='C2', alpha=rope_alpha)
ax.axvspan(rope[0], rope[1], 0, len(values), color='C2', alpha=rope_alpha)
elif rope is not None:
raise ValueError('Argument `rope` must be None or an '
'iterable of length 2')
Expand Down

0 comments on commit 7b81d2e

Please sign in to comment.