8000 Document that clip_to_bbox requires closed paths. · matplotlib/matplotlib@ddf09f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit ddf09f2

Browse files
committed
Document that clip_to_bbox requires closed paths.
1 parent b8a37db commit ddf09f2

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
@@ -714,6 +714,9 @@ def clip_to_bbox(self, bbox, inside=True):
714714
"""
715715
Clip the path to the given bounding box.
716716
717+
The path must be made up of one or more closed polygons. This
718+
algorithm will not behave correctly for unclosed paths.
719+
717720
If *inside* is `True`, clip to the inside of the box, otherwise
718721
to the outside of the box.
719722
"""

0 commit comments

Comments
 (0)
0