matplotlib 3.5.1

Parameters
set_ticklabels(self, ticklabels, update_ticks=<deprecated parameter>, *, 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_ticks(positions, labels=labels)`` instead.

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

Parameters

ticklabels : sequence of str or of `.Text`

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

update_ticks : bool, default: True

This keyword argument is ignored and will be be removed. Deprecated

minor

minor

**kwargs :

:None:None:`.Text` properties for the labels.

Set 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/colorbar.py#890
type: <class 'function'>
Commit: