You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.1.1.post1080+g0db0992
Fork me on GitHub

This Page


Axes.set_xticklabels(labels, fontdict=None, minor=False, **kwargs)

Set the x-tick labels with list of string labels.


labels : list of str

List of string labels.

fontdict : dict, optional

A dictionary controlling the appearance of the ticklabels. The default fontdict is:

{'fontsize': rcParams['axes.titlesize'],
 'fontweight': rcParams['axes.titleweight'],
 'verticalalignment': 'baseline',
 'horizontalalignment': loc}

minor : bool, optional

Whether to set the minor ticklabels rather than the major ones.


A list of Text instances.

Other Parameters:

**kwargs : Text properties.