You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.0.0b1.post7580.dev0+ge487118
matplotlib
Fork me on GitHub

This Page

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