Skip to content

Add vertical upset plot visualization feature - #32

Open
edmundmiller wants to merge 2 commits into
mainfrom
claude/vertical-upset-plot-01Uk95UXZz7uPEiBcjtESYJm
Open

Add vertical upset plot visualization feature#32
edmundmiller wants to merge 2 commits into
mainfrom
claude/vertical-upset-plot-01Uk95UXZz7uPEiBcjtESYJm

Conversation

@edmundmiller

Copy link
Copy Markdown
Owner

No description provided.

Implemented a new 'orientation' parameter for UpSet plots that allows switching between horizontal and vertical layouts:
- Horizontal (default): cardinality bars on top (vertical), set sizes on right (horizontal)
- Vertical (new): cardinality bars on left (horizontal), set sizes on top (vertical)

Changes:
- Added 'orientation' parameter to UpSetAltair() function with validation
- Updated create_vertical_bar() to support both orientations by swapping X/Y axes
- Updated create_matrix_view() to swap axes for vertical orientation
- Updated create_horizontal_bar() to support vertical layout with Y-axis for set sizes
- Refactored layout logic to use hconcat for vertical orientation
- Added comprehensive tests for vertical orientation
- Updated test normalization to handle auto-generated param and view names

All existing tests pass, and the feature is fully backward compatible.
Updated documentation to include the new vertical orientation feature:
- Added vertical orientation to README features list
- Added "Vertical Orientation" section to README advanced usage
- Updated CHANGELOG with unreleased version entry
- Added comprehensive examples to advanced_features.rst showing:
  - Vertical orientation usage
  - Comparison between horizontal and vertical layouts
  - Use case guidance (vertical for interactive, horizontal for papers)

The documentation explains that vertical layouts display cardinality
horizontally (on the left) and set sizes vertically (on top), making
them ideal for interactive plots that can be scrolled.
@claude

claude Bot commented Nov 16, 2025

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

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