AxesLocatorDecorator

class qf_lib.plotting.decorators.axes_locator_decorator.AxesLocatorDecorator(x_major: matplotlib.ticker.Locator = None, x_minor: matplotlib.ticker.Locator = None, y_major: matplotlib.ticker.Locator = None, y_minor: matplotlib.ticker.Locator = None, key: str = None)[source]

Bases: qf_lib.plotting.decorators.chart_decorator.ChartDecorator

Creates a new axes locator decorator that changes how often the tickers in the x and y-axis are displayed.

See here for a list of valid axes locators: http://matplotlib.org/api/ticker_api.html#tick-locating

Methods

decorate(chart)

Modifies the axes object taken from the chart (e.g.

decorate(chart)[source]

Modifies the axes object taken from the chart (e.g. adds legend, draws cone, etc.).