Skip to content

Commit ad31040

Browse files
author
J. Scott Berg
committed
Also ignore STOP verticies when computing bounds
1 parent 57995b3 commit ad31040

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)