Skip to content

Commit

Permalink
Merge pull request matplotlib#28462 from meeseeksmachine/auto-backpor…
Browse files Browse the repository at this point in the history
…t-of-pr-28440-on-v3.9.x

Backport PR matplotlib#28440 on branch v3.9.x (DOC: Add note about simplification of to_polygons)
  • Loading branch information
QuLogic authored Jun 26, 2024
2 parents a7f5904 + 0caf58a commit 1f0e4c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/matplotlib/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,9 @@ def to_polygons(self, transform=None, width=0, height=0, closed_only=True):
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
Expand Down

0 comments on commit 1f0e4c4

Please sign in to comment.