Legend

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

Legend[{{box1,text1},},options]

generates a legend with the specified boxes and text.

Legend[func,num,options]

generates a legend by applying func to numbers between 0 and 1, incremented by the number of boxes num-1.

Legend[func,num,mintext,maxtext,options]

labels the first and last boxes with mintext and maxtext, respectively.

Details

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Graphics primitives making up a legend:

In[2]:=
Click for copyable input
Out[2]//InputForm=
In[3]:=
Click for copyable input
Out[3]=

Surface plot with a legend:

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

See Also

Plot  PlotLegend  ShadowBox  Tooltip

Tutorials