Skip to content

Commit bdb4935

Browse files
authored
Merge pull request #25384 from greglucas/np-import-builtins
FIX: Remove some numpy function overrides from pylab
2 parents 914f533 + 267ed9e commit bdb4935

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/pylab.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@
4848
# This is needed, or bytes will be numpy.random.bytes from
4949
# "from numpy.random import *" above
5050
bytes = __import__("builtins").bytes
51+
# We also don't want the numpy version of these functions
52+
max = __import__("builtins").max
53+
min = __import__("builtins").min
54+
round = __import__("builtins").round

0 commit comments

Comments
 (0)