Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

PlotLabels

PlotLabels
is an option for visualization functions that specifies what labels to use for each data source.

DetailsDetails

  • PlotLabels->labels specifies the labels to use for each data source in a plot.
  • Possible settings for labels include:
  • Noneno labels
    Automaticautomatic labels
    {lbl1,lbl2,}use for the i^(th) label
    Placed[labels,pos]labels at position pos
    Placed[labels,pos,f]labels formatted with f
  • The can be any expression, including strings, graphics, and formulas.
  • None indicates no label. If there are more items to label than specified, the subsequent are taken to be None.
  • The positions pos in Placed[labels,pos,] are relative to each item being labeled.
  • Positions vary by function, but typically include Above, Below, scaled positions, etc.
  • If explicit labeling is specified using Labeled, it is added to labeling specified through PlotLabels.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Specify labels to use for the data:

In[1]:=
Click for copyable input
Out[1]=

Place labels before the ends of the curves:

In[1]:=
Click for copyable input
Out[1]=

Automatically label curves with the keys of an Association:

In[1]:=
Click for copyable input
Out[1]=

Use the expressions being plotted as labels:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2016
(10.4)