qis.plot_portfolio_breadth_concentration

qis.plot_portfolio_breadth_concentration(result, *, date=None, title='Current capital and risk concentration', detailed_mode=True, colors=None, fontsize=10, ax=None)[source]

Plot current cumulative absolute capital and risk-contribution concentration.

Assets are ranked independently for the two curves. The displayed 50% and 80% counts therefore answer how many largest positions account for each allocation, rather than which named instruments occupy those ranks.

Parameters:
  • result (PortfolioBreadthResult) – Numerical breadth result produced by compute_portfolio_breadth.

  • date (Optional[pd.Timestamp]) – Exact evaluation date to show. None uses the latest result date.

  • title (str) – Figure-level title shown in detailed mode.

  • detailed_mode (bool) – Whether to draw the title and methodology note.

  • colors (Optional[Mapping[str, str]]) – Optional semantic colour overrides. Use Capital allocation and Risk allocation to change the two curves.

  • fontsize (int) – Base font size for axes and legend.

  • ax (Optional[plt.Axes]) – Caller-owned axis. None creates a figure.

Returns:

The figure drawn on, or None when ax was supplied.

Raises:

ValueError – If the requested date is absent or current capital/risk shares are empty.

Return type:

Optional[Figure]