Ruth Comer
Ruth Comer
From the discussion at #18346, it seems the intention at the time had been to pre-deprecate `plot_date` but the `PendingDeprecationWarning` was causing an issue with Sphinx :eyes:
OK, I see the `.prj` files were deliberately added to help geopandas: #1744, #1745, and `.cpg` came in with that.
I think it makes sense to leave this open as a feature request. It seems like an obvious thing for people to want and @greglucas has now included some guidance...
Another workaround is to set up the axes with a different central longitude: ```python import numpy as np import matplotlib.pyplot as plt from matplotlib.path import Path import cartopy.crs as ccrs...
Over at https://github.com/SciTools/cf-units/pull/364#discussion_r1501764951, @pelson suggested these checks would be better via pre-commit hooks. I found this [insert-license](https://github.com/Lucas-C/pre-commit-hooks?tab=readme-ov-file#insert-license) is a [supported hook](https://pre-commit.com/hooks.html). Edit: I opened https://github.com/SciTools/.github/issues/22 to see if Iris wants...
`fig.add_subplot` is a Matplotlib method, and Matplotlib's type stubs indicate that it returns a matplotlib `Axes` instance, which indeed does not have `set_global`, etc. I'm not sure it's actually possible...
From the [basemap docs](https://matplotlib.org/basemap/api/basemap_api.html#mpl_toolkits.basemap.maskoceans) > mpl_toolkits.basemap.maskoceans(lonsin, latsin, datain, inlands=True, resolution='l', grid=5)(https://matplotlib.org/basemap/api/basemap_api.html#mpl_toolkits.basemap.maskoceans) mask data (datain), defined on a grid with latitudes latsin longitudes lonsin so that points over water will not...
Hello @guziy, thanks for the report and the reproducing code. Unfortunately pickle files are not portable across python environments, so it is unlikely that we will be able to run...
Thanks @guziy I confirm I have reproduced the error with our `main` development branch.
The specific error here is caused by this line https://github.com/SciTools/cartopy/blob/97c6a6488d2edfd4780ac2d8df7b0014560e4917/lib/cartopy/crs.py#L1210 It seems that adding a zero buffer to a `Polygon` can create a `MultiPolygon`. I tried this ```diff diff --git...