matplotlib.axes.Axes.set_xticklabels

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

Set the xtick labels with list of string labels

Parameters:

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

If True select the minor ticklabels, else select the minor ticklabels

Returns:

A list of Text instances

Other Parameters:

**kwargs : Text properties.

© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/_as_gen/matplotlib.axes.Axes.set_xticklabels.html