lib/matplotlib/image.py
def contains(self, mouseevent):
        """Test whether the mouse event occured within the image.
        """

        if callable(self._contains): return self._contains(self,mouseevent)

        if not self.get_visible():# or self.get_figure()._renderer is None:
            return False,{}

        x, y = mouseevent.x, mouseevent.y
        inside = self.get_window_extent().contains(x, y)

        return inside,{}
Test whether the mouse event occured within the image.
        
Test whether the mouse event occured within the image.
Test whether the mouse event occured within the image .
def contains(self, mouseevent):
        if callable(self._contains): return self._contains(self,mouseevent)
        if not self.get_visible():
            return False,{}
        x, y = mouseevent.x, mouseevent.y
        inside = self.get_window_extent().contains(x, y)
        return inside,{}
def contains ( self , mouseevent ) : if callable ( self . _contains ) : return self . _contains ( self , mouseevent ) if not self . get_visible ( ) : return False , { } x , y = mouseevent . x , mouseevent . y inside = self . get_window_extent ( ) . contains ( x , y ) return inside , { }
Test whether the mouse event occured within the image.
Test whether the mouse event occured within the image .
"""Test whether the mouse event occured within the image.
        """ # or self.get_figure()._renderer is None:
self
mouseevent