Skip to content

Conversation

@cvanelteren
Copy link
Collaborator

This PR adds a new ribbon flow plot type via ax.ribbon for fixed-row, top-aligned transition diagrams, distinct from Sankey layering because category rows remain globally stable across periods. It includes a reusable implementation in plot_types/ribbon.py, PlotAxes API wiring, a smoke test in test_plot.py, and a new plot-types gallery example using synthetic generic categories so the feature is documented without domain-specific assumptions.

@cvanelteren cvanelteren changed the title Add top-aligned ribbon flow plot type Feature: Add top-aligned ribbon flow plot type Feb 7, 2026
return diagrams[0] if len(diagrams) == 1 else diagrams

@docstring._snippet_manager
def ribbon(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defaults in the rc.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@beckermr beckermr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk if the test failures matter or not. Otherwise Lgtm.

@cvanelteren
Copy link
Collaborator Author

The tests are still a bit flaky -- been trying to fix it but it feels like whack-a-mole

@cvanelteren cvanelteren enabled auto-merge (squash) February 12, 2026 05:38
@cvanelteren cvanelteren merged commit bd9ff0b into main Feb 12, 2026
23 of 25 checks passed
@cvanelteren cvanelteren deleted the feat/topic-ribbon-example branch February 12, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants