matplotlib.axis.Axis.set_ticklabels

Axis.set_ticklabels(self, ticklabels, *args, minor=False, **kwargs) [source]

Set the text values of the tick labels.

Parameters:
ticklabelssequence of str or of Texts

List of texts for tick labels; must include values for non-visible labels.

minorbool

If True, set minor ticks instead of major ticks.

**kwargs

Text properties.

Returns:
labelslist of Texts

For each tick, includes tick.label1 if it is visible, then tick.label2 if it is visible, in that order.

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.2.2/api/_as_gen/matplotlib.axis.Axis.set_ticklabels.html