AxesLabel

AxesLabel
is an option for graphics functions that specifies labels for axes.

DetailsDetails

  • The following settings can be used:
  • Noneno labels
    labellabel for y in 2D or z in 3D
    {lblx,lbly}labels for x and y
    {lblx,lbly,lblz}labels for x, y, and z
    Automaticlabels based on variables specified to Plot etc.
  • By default, axes labels in two-dimensional graphics are placed at the ends of the axes. In three-dimensional graphics, they are aligned with the middles of the axes.
  • Any expression can be specified as a label. It will be given by default in TraditionalForm. Arbitrary strings of text can be given as . »

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

Place a label for the axis in 2D:

In[1]:=
Click for copyable input
Out[1]=

Place a label for the axis in 3D:

In[2]:=
Click for copyable input
Out[2]=

Specify a label for each axis:

In[1]:=
Click for copyable input
Out[1]=

Use labels based on variables specified in Plot3D:

In[1]:=
Click for copyable input
Out[1]=

Overall style of all the label-like elements can be specified by LabelStyle:

In[1]:=
Click for copyable input
Out[1]=
New in 1 | Last modified in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »