You are reading an old version of the documentation (v2.1.2). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_yticklabels.html
Version 2.1.2
matplotlib
Fork me on GitHub


Travis-CI:

This Page

matplotlib.axes.Axes.set_yticklabels

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

Set the y-tick labels with list of strings 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

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

Returns:

A list of Text instances.

Other Parameters:
 

**kwargs : Text properties.