LegendMargins

LegendMargins
is an option for legends that specifies the margins to leave around the legend.

DetailsDetails

  • Possible settings are:
  • distthe same margins on all sides
    {{left,right},{bottom,top}}different margins on different sides
  • Margin sizes are in printer's points.
  • LegendMargins adds space between the content generated by LegendLayout and the container provided by LegendFunction.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Leave no margins between legends and LegendFunction:

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

Specify margins in different sides:

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

Leave no margins between legends and plot:

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

Use LegendMargins to leave margins between legends and plot:

In[2]:=
Click for copyable input
Out[2]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »