Plot plane curves defined by an implicit function f(x,y)=0
.
using ImplicitPlots, Plots
f(x,y) = (x^4 + y^4 - 1) * (x^2 + y^2 - 2) + x^5 * y
implicit_plot(f; xlims=(-2,2), ylims=(-2,2))
Polynomials following the MultivariatePolynomials.jl
interface, e.g., DynamicPolynomials.jl
are also supported.
using DynamicPolynomials, Plots
@polyvar x y
f2 = (x^4 + y^4 - 1) * (x^2 + y^2 - 2) + x^5 * y
implicit_plot(f2; xlims=(-2,2), ylims=(-2,2))