Skip to content

ezplot

plot · scripts/plot/draw/ezplot.m

: h = ezplot (f)
: h = ezplot (f, dom)
: h = ezplot (fx, fy)
: h = ezplot (fx, fy, tdom)
: h = ezplot (ax, …)

Plot a function, a parametric curve or an implicit curve.

f is a function handle or a string expression. A function of one variable f(x) is drawn as y = f(x) over dom (default [-2*pi, 2*pi]); a four-element dom also sets the limits of the vertical axis. With two functions fx and fy the curve (fx(t), fy(t)) is drawn for tdom (default [0, 2*pi]). A function of two variables f(x,y) is drawn as the curve f(x,y) = 0 over the square dom.

The handle of the line is returned.