pytyche.viz.plot_cells

pytyche.viz.plot_cells(cells, ax=None)[source]

Horizontal bar chart of per-cell traffic weights.

Parameters:
  • cells (Sequence[Any]) – Objects carrying id (str) and weight (float) attributes — the shipped L1 Cell shape, consumed duck-typed.

  • ax (Axes | None) – Existing axes to draw into; None creates a new figure.

Return type:

Axes

Returns:

The axes containing one bar per cell, top-to-bottom in list order.