Skip to content

DM-55379: Display WCS axes - #22

Merged
timj merged 2 commits into
mainfrom
tickets/DM-55379
Jul 8, 2026
Merged

timj merged 2 commits into
mainfrom
tickets/DM-55379

Conversation

@timj

@timj timj commented Jul 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@timj
timj force-pushed the tickets/DM-55379 branch 2 times, most recently from 832f76b to 21073ae Compare July 3, 2026 19:23
@timj
timj requested a review from fred3m July 7, 2026 07:33

@fred3m fred3m left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. One minor comment.

timj and others added 2 commits July 8, 2026 20:16
The matplotlib backend now draws all axis furniture (border, ticks,
labels, and optionally the full curvilinear grid) in sky coordinates
using starlink-pyast when the displayed data have a WCS.  The SkyWcs is
converted to a pyast FrameSet via AST native serialization, so the
transform is exact with no FITS approximation.

New Display kwargs: useWcsAxes (default True), wcsGrid, and
astPlotOptions for arbitrary AST Plot attribute settings.  Labels
honour useSexagesimal and update live; the axes redraw on zoom and pan
and survive erase.  Also fixes _erase, which raised AttributeError on
matplotlib >= 3.7.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Interactive panning and zooming update the axis limits on every
mouse-motion event, and rebuilding the AST axes twice per event
(~50 ms per rebuild) made navigation unusable in notebooks.  Limit
changes now restart a one-shot 200 ms timer and the rebuild happens
once the view settles.  The existing artists are drawn in data
coordinates so they track the view during the drag.  Backends without
a running event loop cannot fire timers, so there the redraw remains
immediate.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@timj
timj force-pushed the tickets/DM-55379 branch from 26d8a01 to 5d61278 Compare July 8, 2026 18:20
@timj
timj merged commit b32d437 into main Jul 8, 2026
2 checks passed
@timj
timj deleted the tickets/DM-55379 branch July 8, 2026 18:33
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