LegendSize


is an option for Legend that specifies the size of a legend box.

更多信息更多信息

  • To use , you first need to load the Plot Legends Package using Needs["PlotLegends`"].
  • The following settings can be given:
  • Automaticautomatically determine the size of the box
    numberscale the size
    {xlength,ylength}use xlength and ylength to determine the size
  • Using setting number scales the size so that it fits in a box with a width equal to the longest side of the length given.

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (1)

In[1]:=
Click for copyable input

Normal-sized box for the legend:

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

Use a smaller box for the legend:

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