qis.plot_portfolio_breadth_current_comparison¶
- qis.plot_portfolio_breadth_current_comparison(results, *, title='Current portfolio breadth by layer', detailed_mode=True, colors=None, fontsize=10, axs=None)[source]¶
Compare the latest breadth counts and efficiencies of named portfolio layers.
- Parameters:
results (Mapping[str, PortfolioBreadthResult]) – Ordered mapping from display name to numerical breadth result.
title (str) – Figure-level title shown in detailed mode.
detailed_mode (bool) – Whether to draw titles and the methodology note.
colors (Optional[Mapping[str, str]]) – Optional semantic colour overrides keyed by metric label.
fontsize (int) – Base font size for axes, legends and bar annotations.
axs (Optional[Sequence[plt.Axes]]) – Two caller-owned axes, counts first and efficiencies second. None creates a figure.
- Returns:
The figure drawn on, or None when
axswas supplied.- Raises:
ValueError – If no results are supplied or a layer name is empty.
- Return type:
Optional[Figure]