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

Skip to content

Commit d235b02

Browse files
authored
Merge pull request #19500 from anntzer/np116
2 parents 47a7293 + 7558cab commit d235b02

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Matplotlib now requires numpy>=1.16
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

lib/matplotlib/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ def _check_versions():
143143

144144
for modname, minver in [
145145
("cycler", "0.10"),
146-
("dateutil", "2.1"),
146+
("dateutil", "2.7"),
147147
("kiwisolver", "1.0.1"),
148-
("numpy", "1.15"),
149-
("pyparsing", "2.0.1"),
148+
("numpy", "1.16"),
149+
("pyparsing", "2.2.1"),
150150
]:
151151
module = importlib.import_module(modname)
152152
if LooseVersion(module.__version__) < minver:

lib/matplotlib/transforms.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,10 @@ def union(bboxes):
677677
"""Return a `Bbox` that contains all of the given *bboxes*."""
678678
if not len(bboxes):
679679
raise ValueError("'bboxes' cannot be empty")
680-
# needed for 1.14.4 < numpy_version < 1.16
681-
# can remove once we are at numpy >= 1.16
682-
with np.errstate(invalid='ignore'):
683-
x0 = np.min([bbox.xmin for bbox in bboxes])
684-
x1 = np.max([bbox.xmax for bbox in bboxes])
685-
y0 = np.min([bbox.ymin for bbox in bboxes])
686-
y1 = np.max([bbox.ymax for bbox in bboxes])
680+
x0 = np.min([bbox.xmin for bbox in bboxes])
681+
x1 = np.max([bbox.xmax for bbox in bboxes])
682+
y0 = np.min([bbox.ymin for bbox in bboxes])
683+
y1 = np.max([bbox.ymax for bbox in bboxes])
687684
return Bbox([[x0, y0], [x1, y1]])
688685

689686
@staticmethod

0 commit comments

Comments
 (0)