LegendSpacing

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

LegendSpacing
is an option for Legend that specifies the amount of space around each key box on a scale where the box is 1.

DetailsDetails

  • To use LegendSpacing, you first need to load the Plot Legends Package using Needs["PlotLegends`"].
  • The following settings can be given:
  • na number
    Automaticdetermine spacing automatically
  • For the boxes to be adjacent (a continuous line, for instance), LegendSpacing should be set to 0.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

Normally spaced keys in the legend:

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

Increasing the value of LegendSpacing increases the distance between the keys in the legend:

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