Ruth Comer

Results 454 comments of Ruth Comer

Hello @FlorianSuzat, please could you provide a code example that we can run to reproduce the problem? We cannot debug anything that we cannot reproduce.

@ameraner are you able to make a minimal reproducing example that demonstrates the problem? http://www.sscce.org/

Actually I think I found the culprit. [_ensure_path_closed](https://github.com/SciTools/cartopy/blob/75c87cd3586afb206eb4aac1d524d314ca21c538/lib/cartopy/mpl/path.py#L22-L51) does not handle an empty path. ```python from cartopy.mpl.path import _ensure_path_closed from matplotlib.path import Path import numpy as np empty_path = Path(np.zeros((0,...

Thanks for the clear report @Eliam76. Everything seems fine if we plot in the projection in which `Nightshade` is defined, so it looks like this is an instance of problems...

I have done a little more digging... The decision whether we have the interior or exterior of a polygon is based on the Shapely `is_ccw` property. https://github.com/SciTools/cartopy/blob/d5a07abf2ee6099e724302921e228e750b953267/lib/cartopy/crs.py#L1181-L1185 I intercepted the...

Also recently saw this fail in the minver tests. Is it always python 3.11?

The Matplotlib problem was fixed in v3.10.5 by https://github.com/matplotlib/matplotlib/pull/30198

Hi @guidocioni, what Cartopy version are you using? We did fix some of these issues at v0.25 but unfortunately [there are plenty remaining](https://github.com/SciTools/cartopy/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Bug%3A%20transforming%20filled%20paths%22).

Hi @guidocioni the problem can be very sensitive to the exact numbers involved (see e.g. https://github.com/SciTools/cartopy/issues/2336#issuecomment-1978870581), so you *may* find that adding a tiny number to your `levels_snow` makes a...