Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

def matplotlib::artist::Artist::set_contains (   self,
  picker 
) [inherited]

Replace the contains test used by this artist. The new picker should
be a callable function which determines whether the artist is hit by the
mouse event::

    hit, props = picker(artist, mouseevent)

If the mouse event is over the artist, return hit=True and props
is a dictionary of properties you want returned with the contains test.

Definition at line 185 of file artist.py.

00185                                  :
        """Replace the contains test used by this artist. The new picker should
        be a callable function which determines whether the artist is hit by the
        mouse event::

            hit, props = picker(artist, mouseevent)

        If the mouse event is over the artist, return hit=True and props
        is a dictionary of properties you want returned with the contains test.
        """
        self._contains = picker

    def get_contains(self):


Generated by  Doxygen 1.6.0   Back to index