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 ? Programmation Python
Les compléments
Voir le programme détaillé
Classe « Artist »

Méthode matplotlib.artist.Artist.add_callback

Signature de la méthode add_callback

def add_callback(self, func) 

Description

help(Artist.add_callback)

Add a callback function that will be called whenever one of the
`.Artist`'s properties changes.

Parameters
----------
func : callable
    The callback function. It must have the signature::

        def func(artist: Artist) -> Any

    where *artist* is the calling `.Artist`. Return values may exist
    but are ignored.

Returns
-------
int
    The observer id associated with the callback. This id can be
    used for removing the callback with `.remove_callback` later.

See Also
--------
remove_callback


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