Skip to content

plot

plot · scripts/plot/draw/plot.m

: plot (y)
: plot (x, y)
: plot (x, y, linespec)
: plot (x1, y1, …, xn, yn)
: plot (…, name, value)
: plot (ax, …)
: h = plot (…)

Plot data as lines and markers on linear axes.

A lone vector y is plotted against its index, a matrix gives one line per column and complex data is plotted as real versus imaginary part. The optional linespec combines a colour letter, a line style and a marker, for example "r--o". Trailing name/value pairs set properties of every created line.

The result is a column vector of line handles.