matplotlib.axes.Axes.set_yticklabels
- Axes.set_yticklabels(labels, *, minor=False, fontdict=None, **kwargs)
[Discouraged] Set the yaxis' tick labels with list of string labels.
[Discouraged] Set the yaxis' tick labels with list of string labels.
The use of this method is discouraged, because of the dependency on
tick positions. In most cases, you'll want to use
Axes.set_[x/y/z]ticks(positions, labels) or Axes.set_yticks
instead.
If you are using this method, you should always fix the tick
positions before, e.g. by using Axes.set_yticks or by explicitly
setting a FixedLocator. Otherwise, ticks are free to
move and the labels may end up in unexpected positions.
TextsTexts for labeling each tick location in the sequence set by
Axes.set_yticks; the number of labels must match the number of locations.
The labels are used as is, via a FixedFormatter (without further
formatting).
If True, set minor ticks instead of major ticks.
A dictionary controlling the appearance of the ticklabels. The default fontdict is:
{'fontsize': rcParams['axes.titlesize'],
'fontweight': rcParams['axes.titleweight'],
'verticalalignment': 'baseline',
Text properties.
TextsFor each tick, includes tick.label1 if it is visible, then
tick.label2 if it is visible, in that order.
matplotlib.axes.Axes.set_yticklabels