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

Skip to content

Commit b557a9d

Browse files
J. Scott Bergjeromefv
J. Scott Berg
authored andcommitted
Also ignore STOP verticies when computing bounds
1 parent e100d40 commit b557a9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,7 @@ def _update_patch_limits(self, patch):
20972097
return
20982098
vertices = np.array([v for s in patch.get_path().iter_segments()
20992099
if s[1] != mpath.Path.CLOSEPOLY
2100+
and s[1] != mpath.Path.STOP
21002101
for v in s[0]]).reshape([-1, 2])
21012102
if vertices.size > 0:
21022103
xys = patch.get_patch_transform().transform(vertices)

0 commit comments

Comments
 (0)