0.2.2: rectangle widget, text labels, and the readout for the host - #5
Merged
CSSFrancis merged 7 commits intoSep 23, 2026
Merged
Conversation
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.
Three additions Ground Crew's DQE mode consumes, each a thin wrapper in the shape of the existing circle/line ones:
FigureView.add_rectangle_widget: a draggable rectangle with an optionalmax_extentsize cap;on_change(x, y, w, h)fires when a drag settles. Replaces a stopgap in Ground Crew that reachedFigureView._plot2d.FigureView.add_texts: text labels at image-pixel positions, one colour or one per text, with an optional halo; the samenamereplaces the group in place.FigureView.set_readout_visibleandFigureFrame'sonReadout: every figure frame relays anyplotlib's hover readout (apl:readout) to the host page, so an app can hide the on-image pill and print the position and value in its own units. The listener keeps only messages from its own iframe, so a figure mounted twice serves each mount.anyplotlib floor raised to 0.10.0 (the readout event and text halos).
Confirmed end to end in Ground Crew against this branch: its DQE e2e drives the real hover relay and the rectangle widget.