The contains method of Collection objects doesn't honour the newly introduced _offset_position attribute, making it fail when _offset_position == "data".
I noticed this when trying to add a pick_event handler to a hexbin plot, which does not work properly with matplotlob 1.2.x
Fix #1973: offset_position == 'data' is not respected by point_in_pat…
@ChrMa: Can you confirm the attached patch fixes your bug?
Again - looks good but needs a small test. 👍
Add test for #1973
@mdboom: Thank you for the quick response. The fix is working perfectly.
As for the test, you might want to add something like picker=1 to the hexbin call to avoid getting a UserWarning about picker being None.