FUNCTION REFERENCE

yline

Draw horizontal constant line(s) at y.

Draw horizontal constant line(s) at y.

Syntax

h = yline(y)

Syntax

h = yline(y, linespec)

Syntax

h = yline(y, linespec, label)

Syntax

h = yline(ax, ..., Name, Value)

Draws one ConstantLine per value in y, spanning the axes from left to right. Supports Color, LineStyle, LineWidth, Alpha, Label, LabelHorizontalAlignment and LabelVerticalAlignment.

Example

h = yline([1 3], '--r', 'lim'); h(1).Label   % 'lim'

Differences from MATLAB: Not checked against MATLAB yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.