tearsheet

Defined in fynance.plot

tearsheet(result, period=252, figsize=(11, 7), *, base=None, logy='auto')[source]

Build a full performance report figure.

Composes the equity curve, drawdown, rolling Sharpe, return distribution and a metrics table into one matplotlib Figure (works headless, embeds in a notebook or a Streamlit app).

Parameters:
resultBacktestResult, PriceSeries or array-like

The strategy result (or an equity curve).

periodint

Annualization factor.

figsizetuple

Figure size.

basefloat, optional

Rescale the equity panel to start at base (e.g. 100 for the familiar base-100 reading); display only, see plot_equity.

logybool or {“auto”}, default “auto”

Log y-axis policy for the equity panel; "auto" switches to log on wide-amplitude curves, see plot_equity.

Returns:
matplotlib.figure.Figure