LegendBorderSpace
is an option for Legend that sets the space around the entire set of key boxes and text in the legend.
LegendBorderSpace
LegendBorderSpace
is an option for Legend that sets the space around the entire set of key boxes and text in the legend.
更多信息和选项
- To use LegendBorderSpace, you first need to load the Plot Legends Package using Needs["PlotLegends`"].
- The following settings can be given:
-
n a number Automatic determine border spacing automatically
范例
基本范例 (1)
Needs["PlotLegends`"]Normal placement of the keys in the legend:
Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendBorderSpace -> Automatic]Increase the space between the keys and the edges of the legend:
Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendBorderSpace -> 1]技术笔记
相关指南
文本
Wolfram Research (2007),LegendBorderSpace,Wolfram 语言函数,https://reference.wolfram.com/language/PlotLegends/ref/LegendBorderSpace.html.
CMS
Wolfram 语言. 2007. "LegendBorderSpace." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/LegendBorderSpace.html.
APA
Wolfram 语言. (2007). LegendBorderSpace. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/PlotLegends/ref/LegendBorderSpace.html 年
BibTeX
@misc{reference.wolfram_2026_legendborderspace, author="Wolfram Research", title="{LegendBorderSpace}", year="2007", howpublished="\url{https://reference.wolfram.com/language/PlotLegends/ref/LegendBorderSpace.html}", note=[Accessed: 14-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_legendborderspace, organization={Wolfram Research}, title={LegendBorderSpace}, year={2007}, url={https://reference.wolfram.com/language/PlotLegends/ref/LegendBorderSpace.html}, note=[Accessed: 14-September-2026]}