numeraire_graphics.plot_cumulative#
- numeraire_graphics.plot_cumulative(results: DataFrame, *, benchmark: str | Series | None = None, recessions: Any = None) plotnine.ggplot[source]#
Cumulative-return and drawdown curves from per-date strategy-return rows.
Consumes the
metric == "strategy_return"rows (one per date per method, as emitted byStrategyReturnEvaluator): each method’s returns are geometrically compounded into a wealth curve and its drawdown, shown in stacked facets (geom_linecoloured by method, a zero reference line).benchmarkoverlays a reference as a distinct dashed line: pass a method name already inresults(it is drawn as the benchmark rather than a peer) or a date-indexedpd.Seriesof returns supplied by the caller.recessionsshades caller-supplied(start, end)date spans viageom_rect— the caller provides the dates; nothing is fetched.