from sympy import * from sympy.parsing.sympy_parser import parse_expr plot_implicit(parse_expr('(x**2+y**2-1)**3-x**2*y**3'),line_color='red')