line - Maple Help

plottools

 line
 generate 2-D or 3-D plot object for a line segment

 Calling Sequence line(a, b, options)

Parameters

 a, b - end points of the line segment options - (optional) equations of the form option=value. For a complete list, see plot/options and plot3d/options.

Description

 • The line command creates a plot data object, which when displayed is a line segment starting at point a and ending at point b. The line is two- or three-dimensional depending on whether a is a list of two or three values, respectively.
 • The plot data object produced by the line command can be used in a PLOT or PLOT3D data structure, or displayed using the plots[display] command.
 • Remaining arguments are interpreted as options, which are specified as equations of the form option = value.  For more information, see plottools, plot/options and plot3d/options.

Examples

 > $\mathrm{with}\left(\mathrm{plottools}\right):$
 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $\mathrm{display}\left(\mathrm{line}\left(\left[0,0\right],\left[3,4\right],\mathrm{color}=\mathrm{red},\mathrm{linestyle}=\mathrm{dash}\right)\right)$
 > $\mathrm{display}\left(\mathrm{line}\left(\left[0,0,0\right],\left[1,1,1\right]\right),\mathrm{axes}=\mathrm{boxed},\mathrm{color}=\mathrm{red},\mathrm{linestyle}=\mathrm{solid},\mathrm{orientation}=\left[-160,60\right]\right)$