Skip to content

Conversation

@cvanelteren
Copy link
Collaborator

Closes #517

This PR fixes a cartopy GeoAxes regression where calling format(..., ticklen=...) would silently override a previously set set_extent() by reapplying _update_extent() with the label-padding expansion. The new logic only refreshes extent when the user explicitly passes extent-related arguments (lonlim/latlim/boundinglat). Otherwise, tick length updates preserve the current extent by reapplying the existing view intervals. A regression test is included to ensure set_extent() remains stable across ticklen-only format calls.

@cvanelteren cvanelteren requested a review from gepcel January 28, 2026 06:54
@cvanelteren
Copy link
Collaborator Author

Failures of the tests can be ignored btw -- docs are fixed on a different PR.

@cvanelteren cvanelteren changed the title Preserve set_extent across ticklen format Preserve set_extent across ticklen format Jan 28, 2026
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.

[Bug] GeoAxes extent got messed up.

3 participants