Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul internals to remove "axis artist" usage and improve flexibility (new version 2.0!) #68

Open
wants to merge 50 commits into
base: main
Choose a base branch
from

Conversation

erykoff
Copy link
Collaborator

@erykoff erykoff commented Nov 16, 2024

This PR has a complete overhaul of the internals of skyproj.

The matplotlib AxisArtist code was brittle and would change randomly from sub-version to sub-version. This overhaul removes use of the AxisArtist and move the required functionality into the SkyAxes class which makes editing the formatting of plots a lot more flexible. Furthermore, interactivity works again on matplotlib 3.9!

The projection code was also simplified to use better caching, and to remove unneeded complexity that allowed transformation from any two coordinate reference systems, but this was never used because we only go from lon/lat to/from a CRS.

The tick labeling has also been simplified internally because we no longer have to work around AxisArtist limitations.

The test plots have all been updated because positions of labels and ticks have moved slightly with the new internals. All the plots look as good or better than the previous versions to my eye. The labeling on arbitrary Albers maps is still a little wonky, but it was wonky before.

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