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 ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé
Classe « Path »

Méthode matplotlib.artist.Path.to_polygons

Signature de la méthode to_polygons

def to_polygons(self, transform=None, width=0, height=0, closed_only=True) 

Description

help(Path.to_polygons)

Convert this path to a list of polygons or polylines.  Each
polygon/polyline is an (N, 2) array of vertices.  In other words,
each polygon has no `MOVETO` instructions or curves.  This
is useful for displaying in backends that do not support
compound paths or Bézier curves.

If *width* and *height* are both non-zero then the lines will
be simplified so that vertices outside of (0, 0), (width,
height) will be clipped.

The resulting polygons will be simplified if the
:attr:`Path.should_simplify` attribute of the path is `True`.

If *closed_only* is `True` (default), only closed polygons,
with the last point being the same as the first point, will be
returned.  Any unclosed polylines in the path will be
explicitly closed.  If *closed_only* is `False`, any unclosed
polygons in the path will be returned as unclosed polygons,
and the closed polygons will be returned explicitly closed by
setting the last point to the same as the first point.


Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé