Plotting
q.plot renders interactive Plotly figures for multiclass model evaluation, return streams, and trade logs. Classification diagnostics include one-vs-rest ROC and precision-recall curves with per-class, micro-average, and macro-average summaries. Return and trade visualizations cover quick column charts, equity curves, drawdowns, calendar heatmaps, full quantstats-style tearsheets, Monte Carlo diagnostics, entry/exit markers, excursions, and per-trade distributions. Return-stream statistics (performance, alpha/beta, rolling diagnostics, q.stats.montecarlo, …) live in q.stats; see Return Statistics. For feature engineering and price-chart examples, see Feature Engineering.
Pages:
- Classification curves — multiclass ROC and precision-recall curves, plus reusable tidy curve data from
q.stats. - Return charts — column charts, equity curves, drawdowns, full performance reports, and monthly heatmaps.
- Tearsheet report — full quantstats-style strategy tearsheet (
q.plot.report) plus its individual panels (metrics table, cumulative returns, EOY returns, rolling diagnostics, worst drawdowns, …). - Simulation tests — Monte Carlo fan charts and outcome distributions, variance testing, and noise testing.
- Trade logs — trade markers on price, MAE/MFE excursions, per-trade return distributions, and the trades → tearsheet bridge.
- Saving figures — exporting any figure to HTML/PNG.