diff --git a/arviz/plots/forestplot.py b/arviz/plots/forestplot.py index 09bfe1f9de..4fcfa02da4 100644 --- a/arviz/plots/forestplot.py +++ b/arviz/plots/forestplot.py @@ -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')