ConeDecorator

class qf_lib.plotting.decorators.cone_decorator.ConeDecorator(series: qf_lib.containers.series.qf_series.QFSeries, live_start_date: datetime.datetime, cone_stds: Union[Sequence[Union[int, float]], float, int] = 1, 2, colors_alpha: float = 0.25, key: str = None)[source]

Bases: qf_lib.plotting.decorators.chart_decorator.ChartDecorator

Puts cone on top of the timeseries starting from given date.

Parameters
  • series (QFSeries) – series that is going to be decorated by the cone

  • live_start_date (datetime) – start date of the cone

  • cone_stds (Sequence[Union[float, int], float, int) – defines the size of the cones in standard deviations

  • colors_alpha (float) – sets the level of transparency of the cone

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

Methods

decorate(chart)

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

decorate(chart: qf_lib.plotting.charts.chart.Chart) → None[source]

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