Skip to content

Fix/wcs projection 606#607

Draft
cvanelteren wants to merge 4 commits intomainfrom
fix/wcs-projection-606
Draft

Fix/wcs projection 606#607
cvanelteren wants to merge 4 commits intomainfrom
fix/wcs-projection-606

Conversation

@cvanelteren
Copy link
Collaborator

Closes #606
Issue #606 is that UltraPlot does not correctly handle Astropy WCS projection objects passed as projection=mosaic.wcs.

In practice, this shows up when code like ax.get_transform("icrs") fails with:

TypeError: Artist.get_transform() takes 1 positional argument but 2 were given

The underlying problem is:

  1. UltraPlot was not preserving/wrapping non-string projection objects like WCS during axes creation.
  2. The external-axes container then exposed the wrong get_transform() method, so WCS-specific transform lookups were
    masked by the base Matplotlib artist API.

@cvanelteren cvanelteren added the Wait Suspending current issue until further notice label Mar 7, 2026
@cvanelteren cvanelteren marked this pull request as draft March 9, 2026 04:48
@cvanelteren
Copy link
Collaborator Author

Integration requires more effort see #606 -- don't have time to work on this atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Wait Suspending current issue until further notice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Handle WCS projections for plotting astronomical images.

1 participant