matplotlib 3.5.1

ParametersReturns
set_ticklabels(self, ticklabels, *, minor=False, **kwargs)
.. admonition:: Discouraged
    The use of this method is discouraged, because of the dependency
    on tick positions. In most cases, you'll want to use
    ``set_[x/y]ticks(positions, labels)`` instead.

    If you are using this method, you should always fix the tick
    positions before, e.g. by using `.Axis.set_ticks` or by explicitly
    setting a `~.ticker.FixedLocator`. Otherwise, ticks are free to
    move and the labels may end up in unexpected positions.

Parameters

ticklabels : sequence of str or of `.Text`\s

Texts for labeling each tick location in the sequence set by .Axis.set_ticks ; the number of labels must match the number of locations.

minor : bool

If True, set minor ticks instead of major ticks.

**kwargs :

Text properties.

Returns

list of `.Text`\s

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

Set the text values of the tick labels.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/axis.py#1680
type: <class 'function'>
Commit: