8000 MNT: Raise on GeoAxes limits manipulation by timhoffm · Pull Request #28594 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MNT: Raise on GeoAxes limits manipulation #28594

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

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/matplotlib/projections/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@
"not supported. Please consider using Cartopy.")

set_ylim = set_xlim
set_xbound = set_xlim
set_ybound = set_ylim

def invert_xaxis(self):
"""Not supported. Please consider using Cartopy."""
raise TypeError("Changing axes limits of a geographic projection is "

Check warning on line 159 in lib/matplotlib/projections/geo.py

View check run for this annotation

Codecov / codecov/patch

lib/matplotlib/projections/geo.py#L159

Added line #L159 was not covered by tests
"not supported. Please consider using Cartopy.")

invert_yaxis = invert_xaxis

def format_coord(self, lon, lat):
"""Return a format string formatting the coordinate."""
Expand Down
Loading
0