LegendShadow
is an option for Legend that specifies the shadowing drawn around the legend.
LegendShadow
LegendShadow
is an option for Legend that specifies the shadowing drawn around the legend.
更多信息和选项
- To use LegendShadow, you first need to load the Plot Legends Package using Needs["PlotLegends`"].
- The following settings can be used:
-
None no shadow is drawn, and a transparent backdrop is used Automatic a shadow is placed automatically {xoffset,yoffset} specifies offset of the shadow from the box
范例
基本范例 (1)
Needs["PlotLegends`"]Do not draw a shadow for the legend:
Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendShadow -> None]Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendShadow -> Automatic]Place the shadow below and to the left of the legend:
Plot[{Sin[x], Cos[x]}, {x, 0, 2Pi}, PlotLegend -> {"sine", "cosine"}, LegendShadow -> {-0.1, -0.1}]技术笔记
相关指南
文本
Wolfram Research (2007),LegendShadow,Wolfram 语言函数,https://reference.wolfram.com/language/PlotLegends/ref/LegendShadow.html.
CMS
Wolfram 语言. 2007. "LegendShadow." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/LegendShadow.html.
APA
Wolfram 语言. (2007). LegendShadow. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/PlotLegends/ref/LegendShadow.html 年
BibTeX
@misc{reference.wolfram_2026_legendshadow, author="Wolfram Research", title="{LegendShadow}", year="2007", howpublished="\url{https://reference.wolfram.com/language/PlotLegends/ref/LegendShadow.html}", note=[Accessed: 08-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_legendshadow, organization={Wolfram Research}, title={LegendShadow}, year={2007}, url={https://reference.wolfram.com/language/PlotLegends/ref/LegendShadow.html}, note=[Accessed: 08-September-2026]}