Legend
Legend[{{box1,text1},…},options]
generates a legend with the specified boxes and text.
Legend[func,num,options]
generates a legend by applying func to numbers between 0 and 1, incremented by the number of boxes num-1.
Legend[func,num,mintext,maxtext,options]
labels the first and last boxes with mintext and maxtext, respectively.
Details and Options
- To use Legend, you first need to load the Plot Legends Package using Needs["PlotLegends`"].
- Possible forms for boxi are color directives (e.g. Hue) or a graphic.
- Possible forms for texti are strings, or strings with Style wrappers.
- Function func should generate a color directive or graphic suitable for a boxi in the legend.
- The following options can be given:
-
LegendPosition {-1, -1} position of legend in relation to graphic LegendSize Automatic length of dimensions LegendShadow Automatic specify shadow LegendTextSpace Automatic space in the legend box for text LegendTextDirection Automatic direction text is rotated, as in Text graphics primitive LegendTextOffset Automatic offset of text, as in Text graphics primitive LegendLabel None label for legend LegendLabelSpace Automatic specify space for LegendLabel LegendOrientation Vertical direction in which key boxes are laid out LegendSpacing Automatic specify the amount of space around each key box LegendBorder Automatic style of border of key boxes and text LegendBorderSpace Automatic specify space around all boxes and text LegendBackground Automatic style of the background
Examples
Text
Wolfram Research (2007), Legend, Wolfram Language function, https://reference.wolfram.com/language/PlotLegends/ref/Legend.html.
CMS
Wolfram Language. 2007. "Legend." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/Legend.html.
APA
Wolfram Language. (2007). Legend. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/PlotLegends/ref/Legend.html