This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
How to | Label a Plot
Mathematica provides flexible options for labeling plots, allowing you to present ideas more clearly in presentations and publications.
There are several methods of adding a label to a plot. You can use PlotLabel, Labeled, or interactively add text to a plot using Drawing Tools. For a description of adding text to plots using Drawing Tools, see How to: Add Text outside the Plot Area and How to: Add Text to a Graphic.
To add a centered label to the top of a plot, use the PlotLabel option:
In[1]:=
Click for copyable input
Out[1]=
You can control the appearance of the label by wrapping it in Style options:
In[2]:=
Click for copyable input
Out[2]=
If the plot has a background color, the plot extends to include the label:
In[3]:=
Click for copyable input
Out[3]=
To put a label underneath a plot, like a caption, use Labeled:
In[4]:=
Click for copyable input
Out[4]=
To use the same font and style that is used in graphics, set the label style to :
In[5]:=
Click for copyable input
Out[5]=
In this case, the background of the plot does not include the label:
In[6]:=
Click for copyable input
Out[6]=