Horizontal line with constant y-value
yline(
creates a constant horizontal
line at the specified y-value in the current axes. For example,
yvalue
)yline(6)
creates a line at y = 6
.
yline(___,
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
)
yl = yline(___)
returns the
ConstantLine
object created. Use yl
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.