From f469110898cfcb9bd09fc6fb45b2b18b90f975c1 Mon Sep 17 00:00:00 2001 From: Ralf Schlatterbeck Date: Fri, 28 Jul 2023 12:39:50 +0200 Subject: [PATCH] Fix for newer matplotlib no type np.complex The type 'np.complex' has long been deprecated in matplotlib. Solution is to use the python builtin type 'complex'. --- smithplot/smithaxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithplot/smithaxes.py b/smithplot/smithaxes.py index 2ed8cbb..841bc36 100644 --- a/smithplot/smithaxes.py +++ b/smithplot/smithaxes.py @@ -728,7 +728,7 @@ def plot(self, *args, **kwargs): pass # if (converted) arg is an ndarray of complex type, split it - if isinstance(arg, np.ndarray) and arg.dtype in [np.complex, np.complex128]: + if isinstance(arg, np.ndarray) and arg.dtype in [complex, np.complex128]: new_args += z_to_xy(arg) else: new_args += (arg,)