IndexFormatter

class IndexFormatter(labels)[source]

Bases: Formatter

Format numbers by assigning fixed strings to non-negative indices. Generally paired with IndexLocator or FixedLocator.

Methods Summary

__call__(x[, pos])

Return the format for tick value x at position pos.

Methods Documentation

__call__(x, pos=None)[source]

Return the format for tick value x at position pos. pos=None indicates an unspecified location.