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)
        xmin, xmax, ymin, ymax = self.get_extent()
        xdata, ydata = mouseevent.x, mouseevent.y
        #print xdata, ydata, xmin, xmax, ymin, ymax
        if xdata is not None and ydata is not None:
            inside = xdata>=xmin and xdata<=xmax and ydata>=ymin and ydata<=ymax
        else:
            inside = False

        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)
        xmin, xmax, ymin, ymax = self.get_extent()
        xdata, ydata = mouseevent.x, mouseevent.y
        if xdata is not None and ydata is not None:
            inside = xdata>=xmin and xdata<=xmax and ydata>=ymin and ydata<=ymax
        else:
            inside = False
        return inside,{}
def contains ( self , mouseevent ) : if callable ( self . _contains ) : return self . _contains ( self , mouseevent ) xmin , xmax , ymin , ymax = self . get_extent ( ) xdata , ydata = mouseevent . x , mouseevent . y if xdata is not None and ydata is not None : inside = xdata >= xmin and xdata <= xmax and ydata >= ymin and ydata <= ymax else : inside = False 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.
        """ #print xdata, ydata, xmin, xmax, ymin, ymax
self
mouseevent