DiagonalLineDecorator

class qf_lib.plotting.decorators.line_decorators.DiagonalLineDecorator(key: str = None, **plot_settings: Any)[source]

Bases: qf_lib.plotting.decorators.chart_decorator.ChartDecorator, qf_lib.plotting.decorators.simple_legend_item.SimpleLegendItem

A simple decorator that displays a diagonal line.

Methods

decorate(chart)

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

decorate(chart: Chart) → None[source]

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