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 :

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Classe « Line2D »

Méthode matplotlib.pyplot.Line2D.contains

Signature de la méthode contains

def contains(self, mouseevent) 

Description

help(Line2D.contains)

Test whether *mouseevent* occurred on the line.

An event is deemed to have occurred "on" the line if it is less
than ``self.pickradius`` (default: 5 points) away from it.  Use
`~.Line2D.get_pickradius` or `~.Line2D.set_pickradius` to get or set
the pick radius.

Parameters
----------
mouseevent : `~matplotlib.backend_bases.MouseEvent`

Returns
-------
contains : bool
    Whether any values are within the radius.
details : dict
    A dictionary ``{'ind': pointlist}``, where *pointlist* is a
    list of points of the line that are within the pickradius around
    the event position.

    TODO: sort returned indices by distance


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé