### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »
- `Axes` class »

# matplotlib.axes.Axes.set_xlabel

`Axes.``set_xlabel`(xlabel, fontdict=None, labelpad=None, **kwargs)

  Set the label for the xaxis.

  Parameters: | xlabel : string x label labelpad : scalar, optional, default: None spacing in points between the label and the x-axis
  Other Parameters:
  | **kwargs : `Text` properties

  See also

  `text`
    for information on how override and the optional args work