Skip to content

DM-55379: Display WCS axes#22

Open
timj wants to merge 4 commits into
mainfrom
tickets/DM-55379
Open

DM-55379: Display WCS axes#22
timj wants to merge 4 commits into
mainfrom
tickets/DM-55379

Conversation

@timj

@timj timj commented Jul 3, 2026

Copy link
Copy Markdown
Member

No description provided.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@timj timj force-pushed the tickets/DM-55379 branch from f38a9a9 to 832f76b Compare July 3, 2026 18:48
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>
@timj timj force-pushed the tickets/DM-55379 branch from 832f76b to 21073ae Compare July 3, 2026 19:23
timj and others added 2 commits July 3, 2026 21:08
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>
AST colours are 1-based indices into the grf colour table, not colour
names; the documented example never worked.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant