Mathematica > Visualization and Graphics > Symbolic Graphics Language > Graphics Objects >

Line

Updated In 7 Graphic
Line[{pt1, pt2, ...}]
is a graphics primitive which represents a line joining a sequence of points.
Line[{{pt11, pt12, ...}, {pt21, ...}, ...}]
represents a collection of lines.
  • The positions of points can be specified either in ordinary coordinates, as {x, y} or {x, y, z}, or in scaled coordinates as Scaled[{x, y}] or Scaled[{x, y, z}].  »
  • 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->{c1, c2, ...} can be used to specify that the color of the line should interpolate between colors ci specified for each point.
  • In 3D, the option VertexNormals->{n1, n2, ...} 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.
New in 1 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team