-
Notifications
You must be signed in to change notification settings - Fork 367
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
Missing y-axis gridline labels when rotated to 90 degrees #2394
Comments
Thanks for the clear report @nmstreethran. I confirm that I can reproduce this in a script if I replace the I think the relevant difference between Cartopy 0.22 and 0.23 is that we changed the default of the auto_update parameter to |
I added some prints to try to debug this diff --git a/lib/cartopy/mpl/gridliner.py b/lib/cartopy/mpl/gridliner.py
index c750a754..6e1e1acb 100644
--- a/lib/cartopy/mpl/gridliner.py
+++ b/lib/cartopy/mpl/gridliner.py
@@ -1277,4 +1277,6 @@ class Label:
overlapping = self.path.intersects_path(label.path)
if overlapping:
self.set_visible(False)
+ print(self.artist, 'overlaps', label.artist)
+ print('overlapping paths:', self.path, label.path, '===', sep='\n')
return overlapping and got
This makes no sense to me. It's as if the |
Description
Some y-axis gridline labels are missing when rotated to 90 degrees. This doesn't seem to happen when the rotation is about 89.9 degrees or less. I only noticed this happening after upgrading Cartopy to 0.23.0.
Code to reproduce
Results
Full environment definition
Operating system
Linux (Pop!_OS 22.04 LTS x86_64)
Cartopy version
0.23.0
pip list
Environment
python3.11 -m venv .venv source .venv/bin/activate python -m pip install --upgrade pip setuptools wheel python -m pip install cartopy jupyterlab
The text was updated successfully, but these errors were encountered: