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.figure.Artist.set_clip_path

Signature de la méthode set_clip_path

def set_clip_path(self, path, transform=None) 

Description

help(Artist.set_clip_path)

Set the artist's clip path.

Parameters
----------
path : `~matplotlib.patches.Patch` or `.Path` or `.TransformedPath` or None
    The clip path. If given a `.Path`, *transform* must be provided as
    well. If *None*, a previously set clip path is removed.
transform : `~matplotlib.transforms.Transform`, optional
    Only used if *path* is a `.Path`, in which case the given `.Path`
    is converted to a `.TransformedPath` using *transform*.

Notes
-----
For efficiency, if *path* is a `.Rectangle` this method will set the
clipping box to the corresponding rectangle and set the clipping path
to ``None``.

For technical reasons (support of `~.Artist.set`), a tuple
(*path*, *transform*) is also accepted as a single positional
parameter.

.. ACCEPTS: Patch or (Path, Transform) or None


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