abaquant.visualization.credit

Import path: abaquant.visualization.credit

Domain: Matplotlib and Plotly visualization helpers with shared themes.

Purpose

Theme-aware fundamental credit-proxy visualizations.

When to use it

Use these functions to inspect model behavior, portfolio allocations, market surfaces, credit assessments, calibrations, and dashboard outputs.

Public objects

  • function: visualize_credit_assessment — Visualize a synthetic score or available metrics with the active theme.

  • function: visualize_credit_scenario — Visualize a credit multiplier scenario grid.

Detailed reference

Theme-aware fundamental credit-proxy visualizations.

abaquant.visualization.credit.visualize_credit_assessment(assessment, *, chart='metrics', backend=None, theme=None, save_path=None, filename=None)

Visualize a synthetic score or available metrics with the active theme.

Parameters:
  • assessment (object)

  • chart (str)

  • backend (Literal['matplotlib', 'plotly'] | None)

  • theme (VisualizationTheme | None)

  • save_path (str | Path | None)

  • filename (str | None)

abaquant.visualization.credit.visualize_credit_scenario(scenario, *, metric='synthetic_credit_proxy_score', chart='heatmap', backend=None, theme=None, save_path=None, filename=None)

Visualize a credit multiplier scenario grid.

Parameters:
  • scenario (object) – Scenario object exposing a long-form data DataFrame with multiplier columns and the requested metric.

  • metric (str, default="synthetic_credit_proxy_score") – Numeric credit scenario metric to display.

  • chart ({"heatmap", "curves", "bar"}, default="heatmap") – Visual form for the scenario table.

  • backend ({"matplotlib", "plotly"}, optional) – Backend override for this figure.

  • theme (VisualizationTheme, optional) – Per-call style override.

  • save_path (str or pathlib.Path, optional) – Explicit export path.

  • filename (str, optional) – Filename relative to the active theme’s save directory.