Hline: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 7: | Line 7: | ||
:hline(y,''lc'') | :hline(y,''lc'') | ||
:h = hline(y,''lc'') | :h = hline(y,''lc'') | ||
Revision as of 17:34, 3 September 2008
Purpose
Place a horizontal line in an existing figure.
Synopsis
- hline(y,lc)
- h = hline(y,lc)
Description
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 vaule is zero. The optional input variable lc can be used to define the line style and color as in normal plotting.
Examples
hline(1.4,'--b')
plots a horizontal dashed blue line at y = 1.4.