|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
Line
Line[{pt1, pt2, ...}]
is a graphics primitive that represents a line joining a sequence of points.
Line[{{pt11, pt12, ...}, {pt21, ...}, ...}]
represents a collection of lines.
Details and OptionsDetails and Options
- Line can be used in both Graphics and Graphics3D (two- and three-dimensional graphics).
- The positions of points can be specified either in ordinary coordinates, as
or
, 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.
- Line thickness can be specified using Thickness or AbsoluteThickness, as well as Thick and Thin. »
- Line dashing can be specified using Dashing or AbsoluteDashing, as well as Dashed, Dotted, etc. »
- Line shading or coloring can be specified using CMYKColor, GrayLevel, Hue, Opacity, or RGBColor. »
- The option VertexColors->{c1, c2, ...} can be used to specify that the color of the line should interpolate between colors
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
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »



