python画图-ValueError: The TextBackend supports only expressions over a 1D range

想用python画一下函数图:

from sympy.parsing.sympy_parser import parse_expr
from sympy import plot_implicit

exc = lambda exper: plot_implicit(parse_expr(exper))
exc('x**2+(y-x**(2/3))**2-1') 

结果报错:ValueError: The TextBackend supports only expressions over a 1D range
python画图-ValueError: The TextBackend supports only expressions over a 1D range_第1张图片
解决:(未安装matplotlib库)

pip install matplotlib

python画图-ValueError: The TextBackend supports only expressions over a 1D range_第2张图片

你可能感兴趣的:(python)