line#
Draw an infinite line through two distinct points.
Available in: math cells.
Syntax#
line(a, b)
Arguments and behavior#
Each point is a two-element array and the two points must differ. The line is clipped to the visible window and contributes no extents to auto-fit, so a plot that only holds a line keeps the default viewport.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
plot(line([0, 0], [0, 4]))Interactive examples could not load. You can still copy the expressions.
Expected result: plot.