diff --git a/lib/matplotlib/transforms.py b/lib/matplotlib/transforms.py index 065e061a8599..4c0f3d32337b 100644 --- a/lib/matplotlib/transforms.py +++ b/lib/matplotlib/transforms.py @@ -474,10 +474,9 @@ def fully_containsy(self, y): :attr:`y1`. """ y0, y1 = self.intervaly - # FIXME x is not define. This method probably doesn't work. return ((y0 < y1 - and (x > y0 and x < y1)) - or (x > y1 and x < y0)) + and (y > y0 and y < y1)) + or (y > y1 and y < y0)) def fully_contains(self, x, y): """