PlotLabels

PlotLabels

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

Details

  • 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 lbli for the i^(th) label
    Placed[labels,pos]labels at position pos
    Placed[labels,pos,f]labels formatted with f
  • The lbli can be any expression, including strings, graphics, and formulas.
  • None indicates no label. If there are more items to label than lbli specified, the subsequent lbli 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.

Examples

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]=

See Also

Labeled  PlotLegends  Placed  Callout  LabelingFunction  ChartLabels  PlotLabel

Introduced in 2016
(10.4)