This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

PlotLegend


is an option for Plot, ListPlot, and related functions that assigns text to lines in a 2D plot to create a legend for that plot.
  • assigns text to each line in the same fashion as PlotStyle.
  • also enables Plot and related functions to accept options for Legend, which will modify the legend produced.
Add a legend to a plot to identify curves:
Needs["PlotLegends`"]
Add a legend to a plot to identify curves:
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=