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:

Place labels before the ends of the curves:

Automatically label curves with the keys of an Association:

Use the expressions being plotted as labels:

Wolfram Research (2016), PlotLabels, Wolfram Language function, https://reference.wolfram.com/language/ref/PlotLabels.html.

Text

Wolfram Research (2016), PlotLabels, Wolfram Language function, https://reference.wolfram.com/language/ref/PlotLabels.html.

BibTeX

@misc{reference.wolfram_2020_plotlabels, author="Wolfram Research", title="{PlotLabels}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/PlotLabels.html}", note=[Accessed: 02-December-2020 ]}

BibLaTeX

@online{reference.wolfram_2020_plotlabels, organization={Wolfram Research}, title={PlotLabels}, year={2016}, url={https://reference.wolfram.com/language/ref/PlotLabels.html}, note=[Accessed: 02-December-2020 ]}

CMS

Wolfram Language. 2016. "PlotLabels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PlotLabels.html.

APA

Wolfram Language. (2016). PlotLabels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PlotLabels.html