LegendBackground


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

DetailsDetails

  • To use , you first need to load the Plot Legends Package using Needs["PlotLegends`"].
  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

Use a white background for the legend:

In[2]:=
Click for copyable input
Out[2]=

Use a yellow background for the legend:

In[3]:=
Click for copyable input
Out[3]=