Skip to content

line

plot · scripts/plot/draw/line.m

: h = line ()
: h = line (x, y)
: h = line (x, y, z)
: h = line (…, name, value)
: h = line (name, value, …)
: h = line (ax, …)

Create line objects in the current (or the given) axes.

line never clears the axes and never starts a new plot. Vector data produce one line, matrix data one line per column; the result is a column vector of handles. Without data the line runs from (0,0) to (1,1). The axes can also be selected with the ‘Parent’ property.