TitleDecorator

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

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