create_returns_distribution

qf_lib.plotting.helpers.create_returns_distribution.create_returns_distribution(returns: QFSeries, frequency: Frequency = Frequency.MONTHLY, title: Optional[str] = None) HistogramChart[source]

Creates a new returns distribution histogram with the specified frequency.

Parameters:
  • returns (QFSeries) – The returns series to use in the histogram.

  • frequency (Frequency) – frequency of the returns after aggregation

  • title – title of the chart

Returns:

A new HistogramChart instance.

Return type:

HistogramChart