Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « Artist »

Méthode matplotlib.artist.Artist.set_contains

Signature de la méthode set_contains

def set_contains(self, picker) 

Description

set_contains.__doc__

[*Deprecated*] Define a custom contains test for the artist.

The provided callable replaces the default `.contains` method
of the artist.

Parameters
----------
picker : callable
    A custom picker function to evaluate if an event is within the
    artist. The function must have the signature::

        def contains(artist: Artist, event: MouseEvent) -> bool, dict

    that returns:

    - a bool indicating if the event is within the artist
    - a dict of additional information. The dict should at least
      return the same information as the default ``contains()``
      implementation of the respective artist, but may provide
      additional information.

Notes
-----
.. deprecated:: 3.3