TitleDecorator

class qf_lib.plotting.decorators.title_decorator.TitleDecorator(title: str, key: str = None)[source]

Bases: qf_lib.plotting.decorators.chart_decorator.ChartDecorator

Adds title to the chart.

Parameters
  • title (str) – title that should be added

  • key (str) – see: ChartDecorator.__init__#key

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.).