create_return_quantiles

qf_lib.plotting.helpers.create_return_quantiles.create_return_quantiles(returns: qf_lib.containers.series.qf_series.QFSeries, live_start_date: datetime.datetime = None, x_axis_labels_rotation: int = 20)qf_lib.plotting.charts.boxplot_chart.BoxplotChart[source]

Creates a new return quantiles boxplot chart based on the returns specified.

A swarm plot is also rendered on the chart if the live_start_date is specified.

Parameters
  • returns (QFSeries) – The returns series to plot on the chart.

  • live_start_date (datetime) – The live start date that will determine whether a swarm plot should be rendered.

  • x_axis_labels_rotation (int) –

Returns

A new BoxplotChart instance.

Return type

BoxplotChart