8000 Remove a numpy<1.15 workaround (we now require >=1.15). · matplotlib/matplotlib@5c79fca · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

10000
Appearance settings

Commit 5c79fca

Browse files
committed
Remove a numpy<1.15 workaround (we now require >=1.15).
1 parent 8990a43 commit 5c79fca

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/matplotlib/transforms.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -695,13 +695,10 @@ def union(bboxes):
695695
"""Return a `Bbox` that contains all of the given *bboxes*."""
696696
if not len(bboxes):
697697
raise ValueError("'bboxes' cannot be empty")
698-
# needed for 1.14.4 < numpy_version < 1.15
699-
# can remove once we are at numpy >= 1.15
700-
with np.errstate(invalid='ignore'):
701-
x0 = np.min([bbox.xmin for bbox in bboxes])
702-
x1 = np.max([bbox.xmax for bbox in bboxes])
703-
y0 = np.min([bbox.ymin for bbox in bboxes])
704-
y1 = np.max([bbox.ymax for bbox in bboxes])
698+
x0 = np.min([bbox.xmin for bbox in bboxes])
699+
x1 = np.max([bbox.xmax for bbox in bboxes])
700+
y0 = np.min([bbox.ymin for bbox in bboxes])
701+
y1 = np.max([bbox.ymax for bbox in bboxes])
705702
return Bbox([[x0, y0], [x1, y1]])
706703

707704
@staticmethod

0 commit comments

Comments
 (0)
0