AxesLabel

AxesLabel

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

Details

  • 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 "text". »

Examples

open allclose all

Basic Examples  (4)

Place a label for the axis in 2D:

Place a label for the axis in 3D:

Specify a label for each axis:

Use labels based on variables specified in Plot3D:

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

Scope  (2)

Labels use TraditionalForm by default:

Use StandardForm instead:

Individually styled labels can be used together with LabelStyle, and have higher priority:

Generalizations & Extensions  (2)

Use labels based on variables specified in Plot and Plot3D:

Any graphic can be used as a label:

Properties & Relations  (1)

The overall output format can be specified using FormatType:

Possible Issues  (1)

When different format types are combined, the result is likely to be unpredictable:

This is equivalent to:

Neat Examples  (2)

Use 3D graphics labels:

Use dynamic checkboxes as the axes labels:

Wolfram Research (1988), AxesLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/AxesLabel.html (updated 2007).

Text

Wolfram Research (1988), AxesLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/AxesLabel.html (updated 2007).

CMS

Wolfram Language. 1988. "AxesLabel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/AxesLabel.html.

APA

Wolfram Language. (1988). AxesLabel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AxesLabel.html

BibTeX

@misc{reference.wolfram_2024_axeslabel, author="Wolfram Research", title="{AxesLabel}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/AxesLabel.html}", note=[Accessed: 14-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_axeslabel, organization={Wolfram Research}, title={AxesLabel}, year={2007}, url={https://reference.wolfram.com/language/ref/AxesLabel.html}, note=[Accessed: 14-December-2024 ]}