Vline: Difference between revisions

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


Line 10: Line 9:
===Description===
===Description===


VLINE draws a vertical line on an existing figure from the bottom axis to the top axis at at postions defined by x which can be a scalar or vector. If no input is used for ''x'' the default vaule is zero {default x = 0}.
VLINE draws a vertical line on an existing figure from the bottom axis to the top axis at at postions defined by <tt>x</tt> which can be a scalar or vector. If no input is used for ''<tt>x</tt>'' the default value is zero {default x = 0}.


Optional input ''lc'' is used to define the line style and color as in normal plotting (see PLOT). If not inputs are supplied, VLINE draws a vertical green line at 0.
Optional input ''<tt>lc</tt>'' is used to define the line style and color as in normal plotting (see MATLAB PLOT command). If no inputs are supplied, VLINE draws a vertical green line at 0.


Output h is the handle(s) of line(s) drawn.
Output <tt>h</tt> is the handle(s) of line(s) drawn.


===Examples===
===Examples===


vline([2.5 3],'-r')
vline([2.5 3],'-r')


plots a vertical red line at x = 2.5 and 3.
plots a vertical red line at x = 2.5 and 3.
Line 24: Line 23:
===See Also===
===See Also===


[[dp]], [[ellps]], [[hline]], [[pan]], [[plot]], [[plttern]]
[[abline]], [[dp]], [[ellps]], [[hline]], [[plttern]], [[pltternf]], [[zline]]

Latest revision as of 16:30, 21 September 2011

Purpose

Place a vertical line in an existing figure.

Synopsis

h = vline(x,lc)

Description

VLINE draws a vertical line on an existing figure from the bottom axis to the top axis at at postions defined by x which can be a scalar or vector. If no input is used for x the default value is zero {default x = 0}.

Optional input lc is used to define the line style and color as in normal plotting (see MATLAB PLOT command). If no inputs are supplied, VLINE draws a vertical green line at 0.

Output h is the handle(s) of line(s) drawn.

Examples

vline([2.5 3],'-r')

plots a vertical red line at x = 2.5 and 3.

See Also

abline, dp, ellps, hline, plttern, pltternf, zline