### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- matplotlib.pyplot »

# matplotlib.pyplot.xlabel

`matplotlib.pyplot.``xlabel`(s, *args, **kwargs)

  Set the x axis label of the current axis.

  Default override is:

      override = {
          'fontsize'            : 'small',
          'verticalalignment'   : 'top',
          'horizontalalignment' : 'center'
          }

  See also

  `text()`
    For information on how override and the optional args work

## Examples using `matplotlib.pyplot.xlabel`

Simple animation examples

Saving an animation

Custom scale

Contourf Demo

Tricontour Demo

Tripcolor Demo

Triplot Demo

Scatter Symbol

Axes Demo

Figure Title

Findobj Demo

Invert Axes

Log Bar

Multiline

Nan Test

Plotfile Demo

Simple Plot

Pyplot Mathtext

Pyplot Text

XKCD

Multiple subplots

Subplot Demo

Controlling style of text and labels using a dictionary

Pgf Fonts

Pgf Preamble

Pgf Texsystem

Pyplot tutorial

Usage Guide