How to plot a cartesian equation with SymPy?

320

Use sympy.plotting.plot_implicit.plot_implicit:

from sympy import *
x, y = symbols("x, y")
plot_implicit(x * (x + y) + 2 * x**3 + x**4 + y**4)

plot

Share:
320

Related videos on Youtube

Julien Blanchon
Author by

Julien Blanchon

Updated on December 14, 2022

Comments

  • Julien Blanchon
    Julien Blanchon over 1 year

    How to plot a cartesian equation with SymPy? For example how to plot

    x*(x+y) + 2*x^3 + x^4 + y^4 == 0
    
  • Julien Blanchon
    Julien Blanchon over 4 years
    Thanks you very much ^^