This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ListLinePlot

ListLinePlot[{y1, y2, ...}]
plots a line through a list of values, assumed to correspond to x coordinates 1, 2, ....
ListLinePlot[{{x1, y1}, {x2, y2}, ...}]
plots a line through specific x and y positions.
ListLinePlot[{list1, list2, ...}]
plots several lines.
AspectRatio1/GoldenRatioratio of height to width
AxesTruewhether to draw axes
ClippingStyleNonewhat to draw when lines are clipped
ColorFunctionAutomatichow to determine the coloring of lines
ColorFunctionScalingTruewhether to scale arguments to ColorFunction
DataRangeAutomaticthe range of x values to assume for data
FillingNonefilling under each line
FillingStyleAutomaticstyle to use for filling
InterpolationOrderNonethe polynomial degree of curves used in joining data points
MaxPlotPointsInfinitythe maximum number of points to include
MeshNonehow many mesh points to draw on each line
MeshFunctions{#1&}how to determine the placement of mesh points
MeshShadingNonehow to shade regions between mesh points
MeshStyleAutomaticthe style for mesh points
MethodAutomaticthe method to use for interpolation and data reduction
PlotMarkersNonemarkers to use to indicate each point
PlotRangeAutomaticrange of values to include
PlotRangeClippingTruewhether to clip at the plot range
PlotStyleAutomaticgraphics directives to determine the style of each line
  • The setting PlotStyle->Automatic uses a sequence of different plot styles for different lines.
  • With the setting PlotStyle->{style1, style2, ...} the stylei are used cyclically to determine the styles for each line.
  • The setting PlotMarkers->Automatic explicitly draws markers to indicate each point in each of the listi.
  • Tooltip[yi] or Tooltip[{xi, yi}] indicates that the coordinates of a point should be displayed in its tooltip.
  • Tooltip[list] specifies that coordinate tooltips should be displayed for all points in the list.
  • Tooltip[list, label] gives the specified tooltip label for the line defined by list.
  • ListLinePlot[{list1, list2, ...}] by default takes the x coordinates for successive values in each of the listi to be successive integers starting at 1.
  • The setting DataRange->{xmin, xmax} specifies other ranges of x coordinates to use, with xmax being associated with the last element in the longest of the listi.
  • With the default setting DataRange->Automatic, ListLinePlot[{{a11, a12}, ..., {an1, an2}}] will be taken to give x and y values for n points on a single line, rather than the y values for n separate lines each containing just two points.
  • The arguments supplied to functions in MeshFunctions are x, y. Functions in ColorFunction are by default supplied with scaled versions of these arguments.
  • The functions are evaluated all along each line.
  • With ClippingStyle->Automatic a line is drawn at the top or bottom of the plotting area wherever a line goes outside the range of the plot.
New in 6