As of Version 9, all the functionality of the PlotLegends package is built into the Wolfram System. >>
There are two ways to use the functions in this package to place a legend in a graphic: the first can only be used as an option to the built‐in functions Plot, ListPlot, and ListLinePlot, while the second can be applied to any graphic. To use the PlotLegend option, you simply specify the text for each curve. If there are more curves than text, the text is used cyclically. The second way of placing a legend in a graphic is to use ShowLegend. With ShowLegend, you specify the graphic and legend as arguments.
There are various options that can be used to control the shape and characteristics of a legend. The most important of these is LegendPosition, which places the lower‐left corner of a legend box in a position specified by a coordinate system scaled so the center of the graphic is at , and the longest side of the graphic runs from to . This same coordinate system is used for LegendSize and LegendShadow.
Several of the options that determine the amount of blank space around the various elements of a legend accept a number that is the ratio of the size of the space desired to the size of one of the key boxes—the colored boxes that denote a key in the legend. These options include LegendSpacing, LegendTextSpace, LegendLabelSpace, and LegendBorderSpace.
This example uses many of the options for legends.
give the graphics primitives for a box with a drop shadow
Legend functions that do not display a graphic.
The arguments for Legend are the same as those inside the first set of braces in the description of a legend given in ShowLegend. Using Legend or ShadowBox, you can generate just the graphics primitives of a legend or box with a drop shadow to be used elsewhere in your own graphics.