yline
- :
h =yline(y)¶ - :
h =yline(y, linespec)¶ - :
h =yline(y, linespec, label)¶ - :
h =yline(…, prop, val)¶ - :
h =yline(ax, …)¶ Draw horizontal lines at the given y values.
y is a real scalar or vector. One line spanning the whole width of the axes is drawn per element; the lines follow later changes of the axes limits. linespec sets colour and line style, label is a string (used for all lines) or a cell array of strings (one per line).
The return value is a column vector of group objects with the properties
Value,Color,LineStyle,LineWidth,Label,LabelHorizontalAlignmentandLabelVerticalAlignment.