matplotlib/matplotlib — Issue #687: Text "contains" method is currently broken
Author: aaronth
Created: 2012-01-27 08:32:41+00:00
State: open

The code in the Text.contains method seem to have the logic flipped for the y component:

Currently in repository:
inside = (x >= l and x <= r and y >= t and y <= b)

Should be:
inside = (x >= l and x <= r and y <= t and y >= b)