Hline: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
imported>Jeremy
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
===Purpose===
===Purpose===


Line 6: Line 5:
===Synopsis===
===Synopsis===


:hline(y,''lc'')
:h = hline(y,''lc'')
:h = hline(y,''lc'')


===Description===
===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.
HLINE draws a horizontal line on an existing figure from the left axis to the right axis at a height, or heights, defined by <tt>y</tt> 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.


===Examples===
===Examples===
Line 21: Line 19:
===See Also===
===See Also===


[[dp]], [[ellps]], [[plot]], [[plttern]], [[vline]], [[zline]]
[[abline]], [[boxplot]], [[dp]], [[ellps]], [[plttern]], [[vline]], [[zline]]

Latest revision as of 15:00, 22 February 2013

Purpose

Place a horizontal line in an existing figure.

Synopsis

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 value 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.

See Also

abline, boxplot, dp, ellps, plttern, vline, zline