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.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

Graphics primitives making up a legend:

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

Surface plot with a legend:

In[4]:=
Click for copyable input
Out[4]=
Translate this page: