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:
-
None no labels Automatic automatic labels {lbl1,lbl2,…} use lbli for the i 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:
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.
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