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

Legend

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.
  • Possible forms for boxi are color directives (e.g. Hue) or a graphic.
  • Possible forms for texti are strings, or strings with Style wrappers.
  • Function func should generate a color directive or graphic suitable for a boxi in the legend.
  • The following options can be given:
LegendPosition{-1, -1}position of legend in relation to graphic
LegendSizeAutomaticlength of {x,y} dimensions
LegendShadowAutomaticspecify shadow
LegendTextSpaceAutomaticspace in the legend box for text
LegendTextDirectionAutomaticdirection text is rotated, as in Text graphics primitive
LegendTextOffsetAutomaticoffset of text, as in Text graphics primitive
LegendLabelNonelabel for legend
LegendLabelSpaceAutomaticspecify space for LegendLabel
LegendOrientationVerticaldirection in which key boxes are laid out
LegendSpacingAutomaticspecify the amount of space around each key box
LegendBorderAutomaticstyle of border of key boxes and text
LegendBorderSpaceAutomaticspecify space around all boxes and text
LegendBackgroundAutomaticstyle of the background