This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

Line

 Lineis a graphics primitive that represents a line joining a sequence of points. Linerepresents a collection of lines.
• The positions of points can be specified either in ordinary coordinates, as or , or in scaled coordinates, as Scaled or Scaled. »
• Offset can be used to specify coordinates in two dimensions. »
• The line consists of a sequence of straight segments joining the specified points.
• The option VertexColors can be used to specify that the color of the line should interpolate between colors specified for each point.
• In 3D, the option VertexNormals can be used to specify effective normals at each point, to be interpolated for purposes of smooth shading.
• Joining of line segments can be specified using JoinForm.
• Line caps can be specified using CapForm.
• Individual coordinates and lists of coordinates in lines can be Dynamic objects.
A line primitive:
Differently styled 2D lines:
Differently styled 3D lines:
A line primitive:
 Out[1]=
 Out[2]=

Differently styled 2D lines:
 Out[2]=

Differently styled 3D lines:
 Out[2]=
 Scope   (14)
Single line segment:
Multiple connected line segments:
Multiple disconnected line segments:
Lines with different thicknesses:
Thickness in scaled size:
Thickness in printer's points:
Dashed lines:
Colored lines:
Line caps can be specified using CapForm:
Joining of line segments can be specified using JoinForm:
Colors can be specified at vertices using VertexColors:
Normals can be specified at vertices using VertexNormals for 3D lines:
Use Scaled coordinates:
Use ImageScaled coordinates in 2D:
Use Offset coordinates in 2D:
 Options   (3)
Line with vertex colors:
Specify vertex colors for 3D lines:
Specify vertex normals for 3D lines:
 Applications   (5)
Complete graph with 11 nodes:
The tangent bundle for a quadratic curve:
A vector field:
2D random walk on a regular lattice:
3D random walk on a regular lattice:
Replace Polygon with Line to have special rendering effects:
Use a random collection of light sources:
Several visualization functions produce Line objects:
Use directive styles appropriate for lines:
You can also transform the output:
The same idea applies in 3D:
This shows the points at which it was sampled:
Line objects need to be specified using numbers that can be represented by machine numbers:
A random collection of lines:
Lines with lighting:
Moiré pattern:
Tangent vectors along an elliptic curve: