Vertical line with constant x-value
xline(
creates a constant vertical line
at the specified x-value in the current axes. For example,
xvalue
)xline(2)
creates a line at x = 2
.
xline(___,
specifies
constant line properties using one or more name-value pair arguments. For a list of
properties, see ConstantLine Properties. Specify name-value pairs after all other input arguments.Name,Value
)
xl = xline(___)
returns the
ConstantLine
object created. Use xl
to modify or
query properties of the line after it is created.
In a 3-D view of the axes, the constant line appears in the x-y plane at the midpoint of the z-axis limits. If the axes are rotated, then the constant line rotates accordingly.