PlotLegends`
PlotLegends`

LegendBackground

As of Version 9, all the functionality of the PlotLegends package is built into the Wolfram System. »

LegendBackground

is an option for Legend that specifies the style of background to use with a legend.

Details and Options

  • To use LegendBackground, you first need to load the Plot Legends Package using Needs["PlotLegends`"].
  • LegendBackground sets ShadowForeground and will override any value passed to ShadowForeground.
  • LegendBackground->style specifies that the legend background is created with the specified graphics directive or list of directives.

Examples

Basic Examples  (1)

Use a white background for the legend:

Use a yellow background for the legend:

Wolfram Research (2016), LegendBackground, Wolfram Language function, https://reference.wolfram.com/language/PlotLegends/ref/LegendBackground.html.

Text

Wolfram Research (2016), LegendBackground, Wolfram Language function, https://reference.wolfram.com/language/PlotLegends/ref/LegendBackground.html.

CMS

Wolfram Language. 2016. "LegendBackground." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/LegendBackground.html.

APA

Wolfram Language. (2016). LegendBackground. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/PlotLegends/ref/LegendBackground.html

BibTeX

@misc{reference.wolfram_2023_legendbackground, author="Wolfram Research", title="{LegendBackground}", year="2016", howpublished="\url{https://reference.wolfram.com/language/PlotLegends/ref/LegendBackground.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_legendbackground, organization={Wolfram Research}, title={LegendBackground}, year={2016}, url={https://reference.wolfram.com/language/PlotLegends/ref/LegendBackground.html}, note=[Accessed: 19-March-2024 ]}