mpl.ticker.EngFormatter

class mpl.ticker.EngFormatter(unit=u'', places=None)[source]

Formats axis values using engineering prefixes to represent powers of 1000, plus a specified unit, e.g., 10 MHz instead of 1e7.

__init__(unit=u'', places=None)[source]

Methods

__init__([unit, places])
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
format_eng(num) Formats a number in engineering notation, appending a letter representing the power of 1000 of the original number.
get_offset()
set_axis(axis)
set_bounds(vmin, vmax)
set_data_interval(vmin, vmax)
set_locs(locs)
set_view_interval(vmin, vmax)

Attributes

ENG_PREFIXES
axis
locs