Skip to content

"TypeError: data type not understood" when using mpmath splot in Python 3.8.3 #541

@vochong

Description

@vochong
python
Python 3.8.3 (default, May 17 2020, 18:15:42) 

>>> from mpmath import *
>>> f = lambda x, y: sin(x+y)*cos(y)
>>> splot(f, [-pi,pi], [-pi,pi]) 

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/python/Pyvenv/lib/python3.8/site-packages/mpmath/visualization.py", line 267, in splot
    u = pylab.linspace(ua, ub, M)
  File "<__array_function__ internals>", line 5, in linspace
  File "/home/python/Pyvenv/lib/python3.8/site-packages/numpy/core/function_base.py", line 132, in linspace
    dt = result_type(start, stop, float(num))
  File "<__array_function__ internals>", line 5, in result_type
TypeError: data type not understood
>>> 
>>> 
>>> matplotlib.__version__
'3.2.1'
>>> mpmath.__version__
'1.1.0'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions