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.
更多信息和选项
- 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
范例
基本范例 (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"]技术笔记
相关指南
文本
Wolfram Research (2016),LegendLabelSpace,Wolfram 语言函数,https://reference.wolfram.com/language/PlotLegends/ref/LegendLabelSpace.html.
CMS
Wolfram 语言. 2016. "LegendLabelSpace." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/LegendLabelSpace.html.
APA
Wolfram 语言. (2016). LegendLabelSpace. Wolfram 语言与系统参考资料中心. 追溯自 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: 17-August-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: 17-August-2026]}