Add ChartMultiSelect widget for multi-region selections#144
Merged
Conversation
Adds a new widget for drawing multiple persistent box/lasso selections on matplotlib charts, each tagged with a class label (a, b, c, d). Users can highlight individual selections for editing, delete them, undo the last one, or clear all. Features include draggable repositioning, class-button switching, and Python helpers (get_labels, get_mask, get_indices) for classification workflows. Includes light/dark theme CSS, marimo demo with two-moons and three-blobs datasets, and integration into docs. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
…sion bump - Bump version 0.2.31 → 0.2.32 - Add reference page and mkdocs nav entry for ChartMultiSelect - Add screenshot to gallery assets - Fix gallery image paths to use chartmultiselect.png - Fix interaction: drawing now works on top of existing selections (single click to highlight instead) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
ChartMultiSelect, a new widget for drawing multiple persistent box/lasso selections on matplotlib charts. Each selection is tagged with a class label (a, b, c, d), enabling interactive classification workflows.Features
get_labels(),get_mask(),get_indices()for filtering classified pointsfrom_callback()pattern for reactive re-renderingDemo
Two examples in
demos/chartmultiselect.py:🤖 Generated with Claude Code