plot_cumulative_returns

eap_pl.plot_cumulative_returns(returns, y_label='Cumulative return')

Plot compounded and cumulative log returns in separate panels.

Parameters

Name Type Description Default
returns polars.DataFrame Data with date, compounded, and cumulative_log columns. Supply returns as fractions. required
y_label str Vertical axis label. 'Cumulative return'

Returns

Name Type Description
plotnine_polars.ggplot A plot with percentage axis labels.