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

Skip to content

Commit 267ed9e

Browse files
committed
FIX: Remove some numpy functions overrides from pylab
Numpy added round, max, min to their exported names which we don't want when we import * from Numpy.
1 parent 788a43d commit 267ed9e

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)