Skip to content

Conversation

@cvanelteren
Copy link
Collaborator

Closes #428

Fixed issue where the outermost gridline labels would be hidden when setting lonlim or latlim on geographic axes. The problem had two causes: (1) cartopy's gridliner xlim/ylim were not properly synchronized with the view intervals - only ylim was set and to an incorrect value, and (2) the extent was being shifted rather than expanded, causing the leftmost boundary to exclude gridlines at exactly the limit value. The fix ensures both xlim and ylim are set to the actual view intervals with appropriate expansion, and that extent bounds are expanded symmetrically. Added comprehensive unit tests to verify boundary labels are created and visible for positive/negative longitudes and various latitude ranges.

@cvanelteren
Copy link
Collaborator Author

A bunch of tests will fail on geo, but they look visually ok in my opinion.

@cvanelteren cvanelteren requested a review from beckermr December 13, 2025 13:08
@codecov
Copy link

codecov bot commented Dec 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cvanelteren cvanelteren merged commit d3f8342 into Ultraplot:main Dec 15, 2025
16 of 25 checks passed
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.

lon, lat labels disappear after ax.format

2 participants