tepkit.utils.mpl_tools.ticker_tools#

Ref: https://matplotlib.org/stable/api/ticker_api.html

Attributes#

ticker_locators

ticker_formatters

Functions#

set_axis_ticker_locator(axis, locator[, arg, minor])

Set the ticker locator of the given axis (ax.xaxis or ax.yaxis).

set_axes_ticker_locator(ax, direction, locator[, arg, ...])

Set the ticker locator of the given axes (ax).

set_ticker_locator(target, locator[, arg, minor, ...])

Set the ticker locator of the given axis (ax.xaxis or ax.yaxis) or axes (ax).

set_axis_ticker_formatter(axis, formatter[, arg, minor])

Set the ticker formatter of the given axis (ax.xaxis or ax.yaxis).

set_axes_ticker_formatter(ax, direction, formatter[, ...])

Set the ticker formatter of the given axes (ax).

set_ticker_formatter(target, formatter[, direction, ...])

Set the ticker formatter of the given axis (ax.xaxis or ax.yaxis) or axes (ax).

test()

Module Contents#

ticker_locators
set_axis_ticker_locator(axis: matplotlib.axis.Axis, locator: str, arg: Any = None, minor: bool = False)#

Set the ticker locator of the given axis (ax.xaxis or ax.yaxis).

set_axes_ticker_locator(ax: matplotlib.axes.Axes, direction: str, locator: str, arg: Any = None, minor: bool = False)#

Set the ticker locator of the given axes (ax). Usage: >>> set_axes_ticker_locator(ax, “x”, “auto”) >>> set_axes_ticker_locator(ax, “x”, “gap”, 10) >>> set_axes_ticker_locator(ax, “y”, “log”, {“base”: 10})

set_ticker_locator(target: matplotlib.axis.Axis | matplotlib.axes.Axes, locator: str, arg: Any = None, minor: bool = False, direction: str = None)#

Set the ticker locator of the given axis (ax.xaxis or ax.yaxis) or axes (ax).

ticker_formatters
set_axis_ticker_formatter(axis: matplotlib.axis.Axis, formatter: str, arg: Any = None, minor: bool = False)#

Set the ticker formatter of the given axis (ax.xaxis or ax.yaxis).

set_axes_ticker_formatter(ax: matplotlib.axes.Axes, direction: str, formatter: str, arg: Any = None, minor: bool = False)#

Set the ticker formatter of the given axes (ax). Usage: >>> set_axes_ticker_formatter(ax, “x”, “null”) >>> set_axes_ticker_formatter(ax, “y”, “log”, {“base”: 10})

set_ticker_formatter(target: matplotlib.axis.Axis | matplotlib.axes.Axes, formatter: str, direction: str = None, arg: Any = None, minor: bool = False)#

Set the ticker formatter of the given axis (ax.xaxis or ax.yaxis) or axes (ax).

test()#