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

ShowLegend

ShowLegend[graphics, legend1, legend2, ...]
places the legend1, legend2, ..., in the given graphic graphics.
  • Each legendi is in the same format as a call to Legend.
  • The graphic graphics is placed in a rectangle whose center is at {0,0}, and whose boundaries are {{-1,-1},{1,1}}. These coordinates must be used to place the legends.
  • The aspect ratio of graphics is unchanged.
Density plot with a legend:
Surface plot with a legend:
Plot with a legend for the filling styles:
Needs["PlotLegends`"]
Density plot with a legend:
In[2]:=
Click for copyable input
Out[2]=
Surface plot with a legend:
In[3]:=
Click for copyable input
Out[3]=
Plot with a legend for the filling styles:
In[4]:=
Click for copyable input
Out[4]=