Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6358d8

Browse files
committed
DOC: Add note about simplification of to_polygons
1 parent 81756c3 commit a6358d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/path.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ def to_polygons(self, transform=None, width=0, height=0, closed_only=True):
697697
be simplified so that vertices outside of (0, 0), (width,
698698
height) will be clipped.
699699
700+
The resulting polygons will be simplified if the
701+
:attr:`Path.should_simplify` attribute of the path is `True`.
702+
700703
If *closed_only* is `True` (default), only closed polygons,
701704
with the last point being the same as the first point, will be
702705
returned. Any unclosed polylines in the path will be

0 commit comments

Comments
 (0)