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


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.
  • PlotLegend->{text1, text2, ...} assigns text to each line in the same fashion as PlotStyle.
  • PlotLegend also enables Plot and related functions to accept options for Legend, which will modify the legend produced.