|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
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.
Details and OptionsDetails and Options
- ListLinePlot has the same options as Graphics, with the following additions and changes:
-
AspectRatio 1/GoldenRatio ratio of height to width Axes True whether to draw axes ClippingStyle None what to draw when lines are clipped ColorFunction Automatic how to determine the coloring of lines ColorFunctionScaling True whether to scale arguments to ColorFunction DataRange Automatic the range of x values to assume for data Filling None filling under each line FillingStyle Automatic style to use for filling InterpolationOrder None the polynomial degree of curves used in joining data points MaxPlotPoints Infinity the maximum number of points to include Mesh None how many mesh points to draw on each line MeshFunctions {#1&} how to determine the placement of mesh points MeshShading None how to shade regions between mesh points MeshStyle Automatic the style for mesh points Method Automatic the method to use for interpolation and data reduction PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLegends None legends for datasets PlotMarkers None markers to use to indicate each point PlotRange Automatic range of values to include PlotRangeClipping True whether to clip at the plot range PlotStyle Automatic graphics 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
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
. - Interactive labeling can be specified for points or lines using Tooltip, StatusArea, or Annotation.
- 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.
- Typical settings for PlotLegends include:
-
None no legend Automatic automatically determine legend {lbl1,lbl2,...} use
,
, ... as legend labelsPlaced[lspec,...] specify placement for legend - Legended[list, label] gives the specified legend label for the line defined by list.
- ListLinePlot[{list1, list2, ...}] by default takes the x coordinates for successive values in each of the
to be successive integers starting at 1. - The setting DataRange->{xmin, xmax} specifies other ranges of x coordinates to use, with
being associated with the last element in the longest of the
. - 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.
- ListLinePlot[list, DataRange->All] always takes list to represent values in a list of separate lines.
- The
can be SparseArray objects. - ListLinePlot can plot TemporalData objects directly.
- 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.
- ListLinePlot normally returns Graphics[{Line[...], ...}].
- With a Filling specification given, ListLinePlot returns Graphics[{GraphicsComplex[...], ...}].
New in 6 | Last modified in 9
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




