mpl.ticker.IndexFormatter

class mpl.ticker.IndexFormatter(labels)[source]

format the position x to the nearest i-th label where i=int(x+0.5)

__init__(labels)[source]

Methods

__init__(labels)
create_dummy_axis(**kwargs)
fix_minus(s) Some classes may want to replace a hyphen for minus with the proper unicode symbol (U+2212) for typographical correctness.
format_data(value)
format_data_short(value) return a short string version
get_offset()
set_axis(axis)
set_bounds(vmin, vmax)
set_data_interval(vmin, vmax)
set_locs(locs)
set_view_interval(vmin, vmax)

Attributes

axis
locs