Add support for world coordinates (WCSAxes)#47
Merged
ErwindeGelder merged 5 commits intoErwindeGelder:mainfrom Feb 3, 2026
Merged
Add support for world coordinates (WCSAxes)#47ErwindeGelder merged 5 commits intoErwindeGelder:mainfrom
ErwindeGelder merged 5 commits intoErwindeGelder:mainfrom
Conversation
Skip WCS axes artist since it's a placeholder with no visible content
Owner
|
Thanks for your contribution! Also thanks for adding the test script. I removed the |
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.
This PR adds support for a class used in the visualization of astronomical data via astropy.wcs.
These can be plots such as this one, showing radio data of the supernova remnant W49B from the THOR survey:

that can be generated with a snippet such as this one:
Before this PR a warning is generated saying that matplot2tikz does not know how to handle the underlying artist class and the resulting plot when compiled in latex shows as empty.
Changes:
_save.py_recurse()functionThe
_WCSAxesArtistis a placeholder artist from astropy's WCS visualization that has no visible rendering contentBy skipping it gracefully, we eliminate the warning while preserving all actual plot content
This approach is consistent with how other placeholder artists (Spines, XAxis, YAxis) are handled
test_wcs_axes.py_WCSAxesArtistare generated