Jump to navigation Jump to search
Place a horizontal line in an existing figure.
- h = hline(y,lc)
HLINE draws a horizontal line on an existing figure from the left axis to the right axis at a height, or heights, defined by y which can be a scalar or vector. If no input is used for y the default value is zero. The optional input variable lc can be used to define the line style and color as in normal plotting.
plots a horizontal dashed blue line at y = 1.4.