LegendLabelSpace
is an option for Legend that specifies the space for LegendLabel.
LegendLabelSpace
LegendLabelSpace
is an option for Legend that specifies the space for LegendLabel.
Details and Options
- To use LegendLabelSpace, you first need to load the Plot Legends Package using Needs["PlotLegends`"].
- The following settings can be given:
-
s a number giving the ratio of a key box size (see LegendTextSpace) Automatic determine the space automatically
Examples
Basic Examples (1)
Needs["PlotLegends`"]Allow an automatic amount of space around the legend's label:
Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendLabelSpace -> Automatic, LegendLabel -> "Curves"]Tighten the space around the legend's label:
Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendLabelSpace -> 1 / 3, LegendLabel -> "Curves"]See Also
Tech Notes
Related Guides
Text
Wolfram Research (2016), LegendLabelSpace, Wolfram Language function, https://reference.wolfram.com/language/PlotLegends/ref/LegendLabelSpace.html.
CMS
Wolfram Language. 2016. "LegendLabelSpace." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/LegendLabelSpace.html.
APA
Wolfram Language. (2016). LegendLabelSpace. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/PlotLegends/ref/LegendLabelSpace.html
BibTeX
@misc{reference.wolfram_2026_legendlabelspace, author="Wolfram Research", title="{LegendLabelSpace}", year="2016", howpublished="\url{https://reference.wolfram.com/language/PlotLegends/ref/LegendLabelSpace.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_legendlabelspace, organization={Wolfram Research}, title={LegendLabelSpace}, year={2016}, url={https://reference.wolfram.com/language/PlotLegends/ref/LegendLabelSpace.html}, note=[Accessed: 15-June-2026]}