From 267ed9e429022484dcc90bd9e2224777e4fbd92f Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Sat, 4 Mar 2023 11:12:03 -0700 Subject: [PATCH] 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. --- lib/matplotlib/pylab.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/matplotlib/pylab.py b/lib/matplotlib/pylab.py index 289aa9050e0c..ebd65655bbed 100644 --- a/lib/matplotlib/pylab.py +++ b/lib/matplotlib/pylab.py @@ -48,3 +48,7 @@ # This is needed, or bytes will be numpy.random.bytes from # "from numpy.random import *" above bytes = __import__("builtins").bytes +# We also don't want the numpy version of these functions +max = __import__("builtins").max +min = __import__("builtins").min +round = __import__("builtins").round